| Titel | Scada-LTS 2.7.8.1 Cross Site Scripting (XSS) Stored |
|---|
| Beschreibung | # Cross-Site Scripting (XSS) Stored endpoint `view_edit.shtm` parameter `name`
---
## Summary
A Stored Cross-Site Scripting (XSS) vulnerability was identified in the `view_edit.shtm` endpoint of the _SCADA-LTS_ application. This vulnerability allows attackers to inject malicious scripts into the `name` parameter. The injected payload is stored on the server and executed automatically in the browser of any user who accesses the affected data source entry, creating a persistent attack vector.
---
## Details
**Vulnerable Endpoint:** `POST view_edit.shtm`
**Parameter:** `name`
The application does not properly validate or sanitize input in the `name` field. As a result, an attacker can inject JavaScript code, which is stored in the system and later rendered in the application’s interface, leading to automatic execution in the user's browser.
---
## PoC
**Payload:**
`<img src=x onerror=alert("View1")>`
### Steps to Reproduce:
1. Log in to the _SCADA-LTS_ application with an account that has permission to create or edit graphical views.
2. Navigate to the **Graphical Views** section and select **Add a new View** or edit an existing entry.
![[Pasted image 20250722190950.png]]
1. In the **Name** field, insert the payload above:
`<img src=x onerror=alert("View1")>`
2. Fill in any other required fields and click **Save**.
![[Pasted image 20250722191053.png]]
5. The stored payload is executed when the user access the User Profile menu immediately in the browser, confirming the Stored XSS vulnerability.
![[Pasted image 20250722191125.png]]
---
## Impact
Stored XSS attacks can lead to severe consequences, including:
- **Session hijacking:** Stealing cookies or authentication tokens to impersonate users
- **Credential theft:** Capturing usernames and passwords through malicious scripts
- **Malware delivery:** Distributing harmful code to application users
- **Privilege escalation:** Compromising higher-privilege accounts via persistent scripts
- **Data manipulation or defacement:** Altering displayed content in the application
- **Reputation damage:** Eroding trust among system users and stakeholders |
|---|
| Quelle | ⚠️ https://github.com/marcelomulder/CVE/blob/main/Scada-LTS/Stored%20XSS%20endpoint%20view_edit.shtm%20parameter%20name.md |
|---|
| Benutzer | marceloQz (UID 87549) |
|---|
| Einreichung | 09.08.2025 08:16 (vor 11 Monaten) |
|---|
| Moderieren | 20.08.2025 12:52 (11 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 320766 [Scada-LTS bis 2.7.8.1 view_edit.shtm Name Cross Site Scripting] |
|---|
| Punkte | 20 |
|---|