title: Reflected Cross Site Scripting
             product: SIEMENS-SINEMA Remote Connect
  vulnerable version: <=V3.0.1.0-
       fixed version: V3.1.0
          CVE number: CVE-2022-29034
              impact: medium
               found: 2022-03-01
                  by: S. Robertz (Office Vienna)
                      SEC Consult Vulnerability Lab

                      An integrated part of SEC Consult, an Atos company
                      Europe | Asia | North America



Vendor description:
"Siemens is a technology company focused on industry, infrastructure,
transport, and healthcare.
 From more resource-efficient factories, resilient supply chains, and smarter
buildings and grids, to cleaner and more comfortable transportation as well as
advanced healthcare, we create technology with purpose adding real value for
customers. By combining the real and the digital worlds, we empower our
customers to transform their industries and markets, helping them to transform
the everyday for billions of people."

"SINEMA Remote Connect is the management platform for remote networks. It is a
server application that enables the simple management of tunnel connections
(VPN) between headquarters, service technicians, and installed machines or


Business recommendation:
The vendor provides a patch which should be installed immediately.

Vulnerability overview/description:
1) Reflected Cross Site Scripting (CVE-2022-29034)
The application contains a reflected cross-site-scripting vulnerability that
can be used to execute JavaScript code in the victim's browser.

Proof of concept:
1) Reflected Cross Site Scripting (CVE-2022-29034)
The error occurs when setting the syslog server to an illegal IP address. An
error message will pop up and will reflect the supplied IP address. However,
the popup message does not use the proper JQuery method, and thus allows to
inject JavaScript code. Note that dots can not be used in the JavaScript
payload, as they will get filtered by the IP parser that runs beforehand.
This was circumvented by supplying the JavaScript code in base64.

Following request can be used to trigger the XSS:

POST /services/syslog_client_settings HTTP/1.1
Host: $host
Cookie: sessionid=708xmctjzk39og596jp4q4r1udfom4l5;
Content-Length: 153
X-Requested-With: XMLHttpRequest
X-Csrftoken: U5AQMbPh3JTcdfdBkgIvaLtoitpS7jUVFJNGNGIY50KZkt5szBzX2Uxz8XTNkr4c
Referer: https://$host/services/syslog_client_settings
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close


Vulnerable / tested versions:
The following version has been tested and found to be vulnerable:
* V3.0.1.0-

Vendor contact timeline:
2022-04-01: Sending advisory via [email protected]
2022-04-01: Issue tracked by Siemens under case #29947
2022-04-19: Siemens confirms vulnerability. Patch available mid May.
             Coordinated advisory release date for 2022-06-14.
2022-06-07: Asking for fixed versions & CVE numbers.
2022-06-14: Coordinated advisory release.

Version V3.1.0 fixes our identified issues as well as other security
vulnerabilities according to the vendor. The firmware can be downloaded here:

The vendor published a security advisory as well: