CVE-2025–56459
The Tag field in the OPCConnect Electron client's Taglist view was rendered as HTML without sanitisation, allowing stored cross-site scripting. Because the renderer had Node/Electron access, an attacker who could add or import a tag could run arbitrary JavaScript and then execute native commands on the operator's workstation.
medium.com
Published on medium.com
Typical real‑world scenario: an attacker compromises the tag configuration file / backend service or socially engineers an operator to import a crafted tag list file that contains the payload.
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 renderer rendered user-controlled tag values as HTML while running with Node/Electron integration enabled, so injected markup could call privileged APIs.
Impact
An attacker who can add or import tags could execute arbitrary JavaScript and then run native commands on the operator's workstation, potentially compromising an OT or SCADA engineering station.
What the attacker needed
Ability to add or import tags; victim opens Taglist view; victim hovers or clicks the tag
The fix
The app should disable nodeIntegration, enable contextIsolation, expose only vetted APIs through a preload script, treat tag values as text, and apply a strict Content Security Policy.
How it was found
- Install and run the OPCConnect Electron client.
- Open OPC Server config and go to Taglist.
- Paste the HTML payload into the Tag input and add the tag.
- Close and reopen the configuration screen so the tag list is re-rendered.
- Observe the anchor is rendered instead of raw text.
- Hover over the link and see the Windows Calculator launch.
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.
The app showed tag names as web page markup instead of plain text, so a tag could contain a small script. Because the app also gave that page powerful access to the computer, the script could launch programs like the calculator, turning a web page trick into running code on the machine.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.