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
This vulnerability allows remote attackers to create arbitrary files on affected installations of D-Link D-View. Authentication is required to exploit this vulnerability.
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.