Stored XSS in Scada-LTS Data Point Edit
The Data Point Name field in Scada-LTS is not sanitised before being rendered, allowing an authenticated attacker to store a script that executes when the edit page is reloaded. This could let an attacker run arbitrary JavaScript in an operator's browser, potentially leading to session hijacking or account takeover.
medium.com
Published on medium.com
Scada-LTS is an open-source Supervisory Control and Data Acquisition (SCADA) platform used in industrial control and monitoring environments. During security research, a stored cross-site scripting (XSS) vulnerability was identified in the Data Point Edit module.
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
Impact
An attacker could execute arbitrary JavaScript in victim browsers, potentially leading to session hijacking, account takeover, and data theft, which is especially risky in SCADA/ICS environments where operator consoles can be compromised.
What the attacker needed
Authenticated user; ability to create or edit a data point
The fix
The application should sanitise input on the server side, escape output in JSP using <c:out> instead of raw ${…}, avoid unsafe DOM APIs like innerHTML, and follow the OWASP XSS Prevention Cheat Sheet.
How it was found
- Open the Data Point Edit page for a chosen data point.
- Create or edit a data point.
- Put a script payload in the Name field.
- Save the data point.
- Reload the Data Point Edit page.
- The script runs 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.
Stored cross-site scripting (XSS) happens when a website saves text a user typed and later shows it without cleaning it first. Here, the name of a data point is saved and then displayed as if it were part of the page, so a script hidden in the name runs in the browser of anyone who opens that page. This can let an attacker act as the logged-in user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.