Skip to content
Path traversal Advisory Beginner CVE-2022-27498

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.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

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.

Marcin 'Icewall' Noga, on Cisco Talos

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

  1. Log in to the Lansweeper helpdesk with an account that has agent or edit configuration permissions.
  2. Navigate to a ticket and open the template editor.
  3. Send a crafted HTTP request to TicketTemplateActions.aspx with action=gettemplateattachment and a fileuid containing directory traversal sequences.
  4. 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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

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.