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.
Originally disclosed on Cisco Talos
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.
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
- Log in with an account that can change Configuration -> HelpDesk Setup settings.
- Send a POST request to the HelpdeskSetupActions endpoint with action=editsetting and a crafted field value.
- Include a matching key in the JSON value parameter and a valid anti-CSRF token.
- 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.