Skip to content
XSS Advisory Intermediate CVE-2023-35796

Siemens SINEMA Server sysLocation Cross-Site Scripting Remote Code Execution Vulnerability

The SNMP sysLocation OID field was not properly validated, allowing an attacker to inject an arbitrary script. A remote attacker could exploit this to execute code with SYSTEM privileges if the target visits a malicious page or opens a malicious file.

Andreas Finstad Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Siemens SINEMA Server. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

Andreas Finstad, on the Zero Day Initiative

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

How it worked

Root cause

Likely the application failed to sanitise or encode the SNMP sysLocation value before rendering it in a context that executes scripts.

Impact

An attacker could execute arbitrary code with SYSTEM privileges, but the target must first visit a malicious page or open a malicious file.

What the attacker needed

Target visits a malicious page; or opens a malicious file

The fix

Siemens issued an update to correct this vulnerability.

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

SNMP is a protocol used to monitor network devices, and the sysLocation field is meant to store a text description of where a device is located. The software failed to check that this text was safe before displaying it, so an attacker could put a script in that field. When someone later viewed that data in the application, the script ran with high privileges, potentially letting the attacker take control of 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.

More by Andreas Finstad

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.