Reflected Cross Site Scripting in SIEMENS-SINEMA Remote Connect

Title

Reflected Cross Site Scripting

Product

SIEMENS-SINEMA Remote Connect

Vulnerable Version

<=V3.0.1.0-01.01.00.02

Fixed Version

V3.1.0

CVE Number

CVE-2022-29034

Impact

medium

Found

01.03.2022

By

S. Robertz (Office Vienna) | SEC Consult Vulnerability Lab

The SIEMENS-SINEMA Remote Connect software contains a reflected cross-site-scripting vulnerability that can be used to execute JavaScript code in the victim's browser, which allows attackers to perform arbitrary actions in the context of the logged-in user.

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 plants." 

Source: https://www.siemens.com

Source: https://new.siemens.com/global/en/products/automation/industrial-communication/industrial-remote-communication/remote-networks/sinema-remote-connect-access-service.html

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; 
csrftoken=sP8NzwJozla1k18xrRzsXiY0zq16IyBddtlDA1C5BC1Orf0oGcqUPr2bpUv1VGLu 
Content-Length: 153 
X-Requested-With: XMLHttpRequest 
X-Csrftoken: U5AQMbPh3JTcdfdBkgIvaLtoitpS7jUVFJNGNGIY50KZkt5szBzX2Uxz8XTNkr4c 
Referer: 

Vulnerable / tested versions

The following version has been tested and found to be vulnerable: 

* V3.0.1.0-01.01.00.02 

Vendor contact timeline

2022-04-01 Sending advisory via productcert@siemens.com
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.

Solution

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

https://support.industry.siemens.com/cs/ww/en/view/109811169/

The vendor published a security advisory as well: 

https://cert-portal.siemens.com/productcert/html/ssa-484086.html

Workaround

None 

Advisory URL 

https://sec-consult.com/vulnerability-lab/

EOF S. Robertz / @2022  

Interested to work with the experts of SEC Consult? 

Send us your application

Interested in improving your cyber security with the experts of SEC Consult? 

Contact our local offices