Lansweeper lansweeper TicketTemplateActions.aspx GetTemplateAttachment directory traversal vulnerability
A directory traversal vulnerability in the GetTemplateAttachment function of Lansweeper allows an authenticated attacker to read arbitrary files on the server by manipulating the fileuid parameter. An attacker could read sensitive files such as web.config, potentially leading to further compromise.
Originally disclosed on Cisco Talos
A directory traversal vulnerability exists in the TicketTemplateActions.aspx GetTemplateAttachment functionality of Lansweeper lansweeper 10.1.1.0. A specially-crafted HTTP request can lead to arbitrary file read.
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 with the required permissions could read arbitrary files on the server, potentially exposing sensitive information such as configuration files and credentials.
What the attacker needed
Authenticated user with agent or edit configuration role
The fix
The vulnerability was fixed by the vendor in a patch release.
How it was found
- Log in to the Lansweeper helpdesk with an account that has agent or edit configuration permissions.
- Navigate to a ticket and open the template editor.
- Send a crafted HTTP request to TicketTemplateActions.aspx with action=gettemplateattachment and a fileuid containing directory traversal sequences.
- The server responds with the contents of the targeted file.
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 bug lets someone who can log in to the helpdesk trick the server into reading files it shouldn't. By putting special characters in a request, they can escape the intended folder and access any file on the machine, like configuration files that contain passwords.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.