Skip to content
SQL injection Advisory Intermediate CVE-2022-22149

Lansweeper lansweeper HelpdeskSetupActions SQL injection vulnerability

The field parameter in the HelpdeskSetupActions endpoint was concatenated directly into a SQL query without sanitisation. An authenticated user with rights to change helpdesk settings could inject SQL and run arbitrary queries against the backend database.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A SQL injection vulnerability exists in the HelpdeskEmailActions.aspx functionality of Lansweeper lansweeper 9.1.20.2. A specially-crafted HTTP request can cause SQL injection.

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

Root cause

The field request parameter was concatenated into a SQL statement without parameterisation or validation.

Impact

An authenticated user with helpdesk configuration rights could read or alter database contents, and the CVSS score rates confidentiality, integrity and availability impact as high.

What the attacker needed

Authenticated account; rights to change HelpDesk Setup settings; valid anti-CSRF token

The fix

The vendor patched the issue; the query should use parameterised statements instead of string concatenation.

How it was found

  1. Log in with an account that can change Configuration -> HelpDesk Setup settings.
  2. Send a POST request to the HelpdeskSetupActions endpoint with action=editsetting and a crafted field value.
  3. Include a matching key in the JSON value parameter and a valid anti-CSRF token.
  4. Observe the database error in the response, confirming the injected SQL was executed.

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.

The application builds a database command by gluing together text from the user's request. Because it never checks that text, a user can slip in extra database instructions of their own. Here the attacker had to be logged in with permission to change helpdesk settings, but once there they could make the database do things it was never meant to.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by Marcin 'Icewall' Noga

View all

5 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.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.