Skip to content
XSS Advisory Intermediate CVE-2022-28703

Lansweeper lansweeper HdConfigActions.aspx altertextlanguages stored cross-site scripting vulnerability

A stored cross-site scripting vulnerability exists in the altertextlanguages functionality of Lansweeper [redacted], where user-supplied news text for non-English languages is not sanitised before being stored in the database. An attacker could inject arbitrary JavaScript that executes when a user edits the news item.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A stored cross-site scripting vulnerability exists in the HdConfigActions.aspx altertextlanguages functionality of Lansweeper lansweeper 10.1.1.0. A specially-crafted HTTP request can lead to arbitrary Javascript code 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

Root cause

Likely the application fails to sanitise the news text parameter before inserting it into the database, and also fails to sanitise it on output.

Impact

An attacker could execute arbitrary JavaScript in the context of a user editing the news item, potentially leading to session compromise or other actions within the application.

What the attacker needed

Authenticated access to configuration; victim edits the news item

How it was found

  1. Send a POST request to the altertextlanguages action with type set to news and a valid id.
  2. Include a language parameter (e.g., lang24) containing a script payload in the news text field.
  3. The payload is stored in the database without sanitisation.
  4. When a user later edits that news item, the stored script executes in their browser.

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.

This is a stored cross-site scripting (XSS) bug. The application saves text you type into a news item without cleaning it, so if you include code that a browser runs (like a script), that code is saved and later runs in the browser of anyone who edits that news item. This can let an attacker run their own code in a victim's session.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Marcin 'Icewall' Noga

View all

146 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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.