Lansweeper WebUserActions.aspx Stored XSS vulnerability
A stored cross-site scripting flaw existed in the login layout settings of Lansweeper. An authenticated user with permission to change those settings could store unsanitised markup that would then run in the browser of anyone visiting the login page.
Originally disclosed on Cisco Talos
A stored cross-site scripting vulnerability exists in the WebUserActions.aspx functionality of Lansweeper lansweeper 9.1.20.2. A specially-crafted HTTP request can lead to arbitrary Javascript code 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
Likely the sanitisation decision compared the field name case-sensitively against a fixed list, so a differently-cased or padded name skipped HTML sanitisation while still updating the same database column.
Impact
An attacker with the required permissions could run script in the browser of any user who loaded the login page, though the text notes the attacker must already be authenticated and authorised.
What the attacker needed
Authenticated account; permission to change login layout fields
The fix
The vendor patched the issue according to the timeline.
How it was found
- Authenticate with an account that may change the login layout fields.
- Send a request to the WebUserActions endpoint with the loginlayout action, setting the name and value parameters.
- Observe the response confirming the value was stored.
- Visit the Lansweeper login page to see the stored markup rendered.
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.
Stored cross-site scripting means an attacker saves text into a website and the site later shows that text to other people as if it were part of the page. If the saved text contains instructions a browser treats as code, those instructions run in the victim's browser. Here the saved text was meant to be cleaned before storage, but a simple spelling trick skipped the cleaning.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.