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.03033
    epss-percentile: 0.85774
    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: 4a0a0047304502204580500eb09aed9ff1daa29bbb2f79212d641a026b614c73507566f6a1a695fb022100f3a25fd9b32376ed94f43892358976eaf367fc3fcb9a759c7e2d10ac757b25dd:922c64590222798bb761d5b6d8e72950