HexBrain

Browse / CVEs / CVE-2009-5020

CVE-2009-5020· awstats / awstats· CWE-20

AWStats < 6.95 - Open Redirect

mediumseverity
5.8CVSS score
3.5%likelihood of exploitation, next 30 days
89%of all CVEs are less likely
Readycheck to confirm it

An open redirect vulnerability in awredir.pl in AWStats < 6.95 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks via unspecified vectors.

Impact

Allows attackers to redirect users to malicious websites or phishing pages.

Fix

Apply all relevant security patches and product upgrades.

How to confirm it

Send: GET {{BaseURL}}/awstats/awredir.pl?url=interact.sh ; GET {{BaseURL}}/cgi-bin/awstats/awredir.pl?url=interact.sh
Positive when: matches in header /(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*…/

Run it with nuclei: nuclei -id CVE-2009-5020 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2009-5020

info:
  name: AWStats < 6.95 - Open Redirect
  author: pdteam
  severity: medium
  description: An open redirect vulnerability in awredir.pl in AWStats < 6.95 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks via unspecified vectors.
  impact: |
    Allows attackers to redirect users to malicious websites or phishing pages.
  remediation: Apply all relevant security patches and product upgrades.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2009-5020
    - http://awstats.sourceforge.net/docs/awstats_changelog.txt
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:P
    cvss-score: 5.8
    cve-id: CVE-2009-5020
    cwe-id: CWE-20
    epss-score: 0.03488
    epss-percentile: 0.89235
    cpe: cpe:2.3:a:awstats:awstats:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: awstats
    product: awstats
    shodan-query: cpe:"cpe:2.3:a:laurent_destailleur:awstats"
  tags: cve2009,cve,redirect,awstats,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/awstats/awredir.pl?url=interact.sh'
      - '{{BaseURL}}/cgi-bin/awstats/awredir.pl?url=interact.sh'

    stop-at-first-match: true
    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1

References

Use this check only on systems you are authorised to test. Where the data comes from