Skip to content
XSS Write-up Beginner

Stored XSS in Scada-LTS Reports Module (Colour Field)

The Colour field in the Reports module of Scada-LTS stores user input without escaping, so an authenticated user can inject HTML/JavaScript that executes when the report template is viewed. This allows persistent arbitrary JavaScript execution in operator browsers, potentially leading to session hijacking or manipulation of SCADA dashboards.

medium.com

Published on medium.com

Scada-LTS is an open-source Supervisory Control and Data Acquisition (SCADA) platform used to monitor and control industrial environments. During testing, a stored cross-site scripting (XSS) vulnerability was identified in the Reports module.

0x5ea3o1f, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Colour field value is inserted into the page without HTML escaping or sanitisation, allowing an attacker to break out of the expected context and inject executable HTML.

Impact

Persistent arbitrary JavaScript execution in operator browsers could lead to session hijacking, CSRF token theft, UI redressing, or injection of rogue controls, and in SCADA/ICS contexts may lead to manipulation of monitoring dashboards and operator actions.

What the attacker needed

Authenticated user account; access to Reports module

How it was found

  1. Navigate to the Reports page.
  2. Create a new report template and add a point to the Points table.
  3. In the Colour column for that point, enter an HTML payload with an image error handler.
  4. Save the template or keep it as a draft.
  5. Reload the Reports page or re-open the template.
  6. The JavaScript executes in the 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 write-up has not been written yet. The Original tab links to the source.

This is a stored cross-site scripting (XSS) bug. A user with an account can type special code into a colour setting, and that code is saved and later runs in the browser of anyone who opens the report. That lets the attacker do things like steal login sessions or change what operators see.

What is XSS?

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

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.