Description
JSON-SCADA before 0.65-alpha contains an sql injection vulnerability in opcApi() in src/server_realtime_auth/index.js that allows authenticated users to inject SQL via HistoryReadRequest parameters. Attackers can inject stacked statements through NodeId.Id, StartTime, or EndTime values to read, modify, or delete historian data across all locations regardless of role.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| riclolsen | json-scada | < 0.65-alpha | 0.65-alpha |
References
- https://github.com/riclolsen/json-scada/commit/60b65bcd42d6ee21aa8587580ec778c3bb9b4755 patch
- V0.65-alpha Release Notes release-notes
- https://github.com/riclolsen/json-scada/blob/V0.64-alpha/src/server_realtime_auth/index.js#L2175-L2224 technical-description
- https://github.com/riclolsen/json-scada product
- VulnCheck Advisory: JSON-SCADA before 0.65-alpha SQL Injection via OPC HistoryRead API third-party-advisory