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.
  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.00115
    epss-percentile: 0.45025
    cpe: cpe:2.3:a:microweber:microweber:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: microweber
    product: microweber
    shodan-query: http.favicon.hash:780351152
  tags: cve,cve2022,huntr,microweber,redirect,oss

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: 490a00463044021f597a9521b2543ac4f4806e9d6f3729cf3c8d1f439a5d8a4a25b50ea2ee9ea4022100f83f548e131b5496fda3a4afa094a39c2344535e281eccfc2463ec6eae4a2087:922c64590222798bb761d5b6d8e72950