Carlo Gavazzi SmartHouse Webapp 6.5.33 CSRF/XSS Vulnerabilities

Title: Carlo Gavazzi SmartHouse Webapp 6.5.33 CSRF/XSS Vulnerabilities
Advisory ID: ZSL-2019-5543
Type: Local/Remote
Impact: Cross-Site Scripting
Risk: (3/5)
Release Date: 30.11.2019
Summary
Carlo Gavazzi is an international company that develops, manufactures and sells electrical automation components. Our products are used in industrial automation and real estate automation. Smart-house is based on a system that we have developed and produced since 1986, mainly for industrial-related installations. Our system is present in more than 150,000 installations. For a few years now, we have focused our development on smart electrical installations for home and property automation. Smart-house is currently installed in both villas and commercial properties.
Description
The application suffers from multiple CSRF and XSS vulnerabilities. The application allows users to perform certain actions via HTTP requests without performing any validity checks to verify the requests. This can be exploited to perform certain actions with administrative privileges if a logged-in user visits a malicious web site. Input passed to several GET/POST parameters is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
Vendor
Carlo Gavazzi Automation S.p.A - http://www.gavazzi-automation.com
Affected Version
Web-app: 6.5.33.17072501
Web-app: 6.5.32.17062101
Web-app: 6.2.3.16102701
Web-app: 5.5.3.160421101
Web-app: 5.3.3.15120101
Release: 1.0.5.1
Release: 1.0.5.0
Release: 1.0.3.5
Release: 1.0.3.2
Tested On
Apache
PHP
Vendor Status
[01.11.2019] Vulnerability discovered.
[15.11.2019] Vendor contacted.
[29.11.2019] No response from the vendor.
[30.11.2019] Public security advisory released.
PoC
smarthouse_csrfxss.txt
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
References
[1] https://www.exploit-db.com/exploits/47730
[2] https://packetstormsecurity.com/files/155508
[3] https://exchange.xforce.ibmcloud.com/vulnerabilities/172441
[4] https://exchange.xforce.ibmcloud.com/vulnerabilities/172438
Changelog
[30.11.2019] - Initial release
[04.12.2019] - Added reference [1], [2], [3] and [4]
Contact
Zero Science Lab

Web: http://www.zeroscience.mk
e-mail: lab@zeroscience.mk