Skip to content
Path traversal Advisory Intermediate CVE-2021-27250

D-Link DAP-2020 errorpage External Control of File Name Information Disclosure Vulnerability

The D-Link DAP-2020 access point fails to validate a user-supplied path in the errorpage request parameter of its CGI scripts. A network-adjacent attacker without authentication could exploit this to disclose stored credentials and further compromise the device.

SUID Follow

Originally disclosed on Zero Day Initiative

Medium 6.5 View original

This vulnerability allows network-adjacent attackers to disclose sensitive information on affected installations of D-Link DAP-2020 Wi-Fi access points. Authentication is not required to exploit this vulnerability.

SUID, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The CGI script handling the errorpage parameter does not validate the supplied path before using it in file operations.

Impact

A network-adjacent, unauthenticated attacker could disclose stored credentials, leading to further compromise of the device.

What the attacker needed

Network-adjacent access; no authentication required

The fix

D-Link issued an update to correct this vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a path traversal flaw in a Wi-Fi access point's web interface. The device takes a file path from a request parameter and uses it without checking it, so an attacker on the same network can ask the device to read files it should not expose, such as ones holding saved passwords.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.