Skip to content
Path traversal Advisory Intermediate CVE-2022-29511

Lansweeper lansweeper KnowledgebasePageActions.aspx ImportArticles directory traversal vulnerability

The Import Articles feature in Lansweeper's KnowledgebasePageActions.aspx does not sanitise the file path supplied in the Attachments column of an uploaded CSV. An authenticated attacker can supply a path to any file on the server, causing it to be read and stored as an article attachment, leading to arbitrary file read.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A directory traversal vulnerability exists in the KnowledgebasePageActions.aspx ImportArticles 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 authenticated attacker could read arbitrary files on the server, potentially exposing sensitive configuration data such as the web.config file.

What the attacker needed

Authenticated user account; valid CSRF token

The fix

The file path should be validated and restricted to an allowed directory before being opened.

How it was found

  1. Log in to the Lansweeper web interface and obtain a valid CSRF token.
  2. Prepare a CSV file with the required header row and an Attachments entry pointing to a target file on the server.
  3. Send a multipart POST request to the importarticles action with the CSV file and the CSRF token.
  4. The server reads the specified file and stores it as an article attachment, which can then be retrieved.

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.

A directory traversal bug lets someone trick a program into opening files outside the folder it is supposed to use. Here, a logged-in user uploads a spreadsheet whose 'Attachments' column contains a path to a sensitive file on the server, such as the web server's configuration file. The program reads that file and saves it as an attachment, so the attacker can download and read it.

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.