Lansweeper lansweeper AssetActions.aspx directory traversal vulnerability
The 'Display name' field when adding a document to an asset is not sanitised for directory traversal, so an attacker can upload a file to any location on the server. This could allow an attacker to place a malicious file that might later be executed or used to compromise the system.
Originally disclosed on Cisco Talos
A directory traversal vulnerability exists in the AssetActions.aspx addDoc functionality of Lansweeper lansweeper 10.1.1.0. A specially-crafted HTTP request can lead to arbitrary file upload.
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
Impact
An attacker could upload a file to an arbitrary location on the file system, potentially leading to further compromise such as code execution if the uploaded file is later executed.
What the attacker needed
Authenticated user with low privileges; ability to add a document to an asset
How it was found
- Navigate to Assets, choose any asset, then Docs, then Add document.
- Submit a POST request to AssetActions.aspx with action=addDoc and a valid assetId.
- Include a file upload and set the txtdocname parameter to a path traversal sequence.
- The server saves the uploaded file to the attacker-specified location.
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.
When you upload a file, the application saves it in a folder and uses the name you provide. If the application does not check that the name is safe, you can use special characters like '..' to tell it to save the file somewhere else on the server. This is called directory traversal, and it can let an attacker put files in places they should not be able to.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.