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

D-Link DAP-2020 webproc getpage Directory Traversal Information Disclosure Vulnerability

The webproc endpoint on D-Link DAP-2020 routers fails to validate the getpage parameter before using it in file operations, allowing a network-adjacent attacker to read arbitrary files. This lets an unauthenticated attacker disclose sensitive information with root privileges.

chung96vn 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 routers. Authentication is not required to exploit this vulnerability.

chung96vn of Vietnam National Cyber Security Center, 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

Likely the getpage parameter is passed directly into a file path without checking for directory traversal sequences or restricting access to a safe directory.

Impact

A network-adjacent attacker could disclose sensitive information on affected installations, with the file access running as root.

What the attacker needed

Network-adjacent access to the router; 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.

A router has a web interface that can serve files. The getpage parameter tells it which file to show, but the router does not check that the requested file is inside the intended folder. An attacker on the same network can ask for files outside that folder, such as system files, and read them without logging in.

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.