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.
Originally disclosed on Cisco Talos
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.
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
- Authenticate to Lansweeper with an account that has edit permissions.
- Send a POST request to /AssetActions.aspx with action=assetfieldschange and a crafted fieldSelect parameter.
- 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.