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

Lansweeper lansweeper AssetActions.aspx SQL injection vulnerability

An authenticated user with edit permissions could inject SQL through the fieldSelect parameter in AssetActions.aspx, allowing them to alter database fields. The proof of concept shows setting the Comments field of all assets to the database version string.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Medium 6.6 View original

An SQL injection vulnerability exists in the AssetActions.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

Impact

An authenticated user with edit permissions could execute arbitrary SQL statements, potentially reading or modifying data in the database.

What the attacker needed

Authenticated account; edit permissions

The fix

The fieldSelect parameter should be validated against a list of allowed field names or properly parameterised before being used in SQL; the vendor patched the issue.

How it was found

  1. Authenticate to Lansweeper with an account that has edit permissions.
  2. Send a POST request to /AssetActions.aspx with action=assetfieldschange and a crafted fieldSelect parameter.
  3. Observe that the injected SQL expression is executed and the Comments field of all assets is set to the database version.

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.

SQL injection is when user input is inserted directly into a database command, letting an attacker change the command's meaning. Here, a logged-in user with edit rights could send a crafted request that made the application run extra SQL, such as copying the database version into a field. The attacker needed a valid account and the right permissions.

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.