id: CVE-2022-0597

info:
  name: Microweber < 1.2.11 - Open Redirection
  author: Farish
  severity: medium
  description: |
    Open Redirect in Packagist microweber/microweber prior to 1.2.11.
  impact: |
    Attackers can redirect users to malicious websites through the redirect_to parameter, potentially facilitating phishing attacks or malware distribution.
  remediation: |
    Upgrade to Microweber version 1.2.11 or later.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0597
    - https://huntr.dev/bounties/68c22eab-cc69-4e9f-bcb6-2df3db626813/
    - https://www.mend.io/vulnerability-database/CVE-2022-0597
    - https://github.com/microweber/microweber/commit/acfc6a581d1ea86096d1b0ecd8a0eec927c0e9b2
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2022-0597
    cwe-id: CWE-601
    epss-score: 0.03019
    epss-percentile: 0.86109
    cpe: cpe:2.3:a:microweber:microweber:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: microweber
    product: microweber
    shodan-query:
      - http.favicon.hash:780351152
      - http.html:"microweber"
    fofa-query:
      - body="microweber"
      - icon_hash=780351152
  tags: cve,cve2022,huntr,microweber,redirect,oss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/logout?redirect_to=http://oast.pro/"

    matchers:
      - type: regex
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)(?:[a-zA-Z0-9\-_\.@]*)oast\.pro.*$'
        part: header
# digest: 4a0a00473045022027ce89cf76c14bb96a52f3dc522e8ea2c9028d63e6cc383439753c7a64a1e2a8022100ce030b68101b70bc3f8e5111768e4d27a7903c199ed5e1029a6c2cc28bd8740a:922c64590222798bb761d5b6d8e72950