Lansweeper lansweeper EchoAssets.aspx SQL injection vulnerability
An SQL injection vulnerability exists in the EchoAssets.aspx endpoint of Lansweeper [redacted] because the 'order' parameter is concatenated into a SQL query without sanitisation. An authenticated attacker with proper permissions could inject arbitrary SQL commands, potentially leading to data disclosure or modification.
Originally disclosed on Cisco Talos
An SQL injection vulnerability exists in the EchoAssets.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
Root cause
The 'order' parameter is concatenated directly into the SQL query string without any sanitisation or parameterisation.
Impact
An authenticated attacker with proper permissions could execute arbitrary SQL commands, potentially leading to data disclosure or modification, as demonstrated by the error-based injection revealing the database version.
What the attacker needed
Authenticated user; proper permissions
The fix
The vulnerability was fixed by the vendor in version 9.1.20.2 (patched on 2022-02-21).
How it was found
- Authenticate to the Lansweeper application with an account that has proper permissions.
- Send a crafted HTTP GET request to /Scanning/Echo/EchoAssets.aspx with a malicious 'order' parameter containing SQL injection payload.
- Observe the error-based SQL injection response revealing database version information.
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 a type of attack where a malicious user can insert their own database commands into a query that the application runs. In this case, the application takes a value from the URL and puts it directly into a database query without checking it, so an attacker can change the query to do something else, like read or change data.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.