Skip to content
Path traversal Advisory Intermediate CVE-2023-32166

D-Link D-View uploadFile Directory Traversal Arbitrary File Creation Vulnerability

The uploadFile function in D-Link D-View fails to validate a user-supplied path before using it in file operations, allowing an authenticated remote attacker to create arbitrary files. This can lead to file creation with SYSTEM privileges.

Andrea Micalizzi aka rgod Follow

Originally disclosed on Zero Day Initiative

High 8.1 View original

This vulnerability allows remote attackers to create arbitrary files on affected installations of D-Link D-View. Authentication is required to exploit this vulnerability.

Andrea Micalizzi aka rgod, 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 uploadFile function does not validate the user-supplied path before using it in file operations, allowing directory traversal.

Impact

An authenticated remote attacker could create arbitrary files on the server, potentially with SYSTEM-level privileges.

What the attacker needed

Authentication required; remote access to D-View

The fix

D-Link has 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 directory traversal bug. When a program lets you upload a file, it should check that the destination path stays inside the intended folder. Here it does not, so someone who is already logged in can make the program write files to places it should not, potentially with high system rights.

What is Path traversal?

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

More by Andrea Micalizzi aka rgod

View all

184 more disclosed reports, best first.

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.