FIBARO System Home Center v5.021 Remote File Include XSS

Title: FIBARO System Home Center v5.021 Remote File Include XSS
Advisory ID: ZSL-2020-5563
Type: Local/Remote
Impact: Cross-Site Scripting
Risk: (3/5)
Release Date: 22.03.2020
Summary
Imagine that you live in a house where everything happens by itself. FIBARO Smart Home takes care of your everyday comfort and safety of all family members and in the meantime, saves energy on every single occasion. All this is possible thanks to Home Center 2 smart home HUB. Home Center 2 is an indispensable part of the FIBARO System without which the rest devices of home automation would be only beautiful objects. The smart home HUB collects and analyzes information about devices, communicates them with each other and thus directs the operation of the entire system and takes care of its security.
Description
The smart home solution is vulnerable to a remote Cross-Site Scripting triggered via a Remote File Inclusion issue by including arbitrary client-side dynamic scripts (JavaScript, VBScript) due to the undocumented proxy API and its url GET parameter. This allows hijacking the current session of the user or changing the look of the page by changing the HTML.
Vendor
FIBAR GROUP S.A. - https://www.fibaro.com
Affected Version
Home Center 3, Home Center 2, Home Center Lite
5.021.38
4.580
4.570
4.540
4.530
4.510
4.180
Tested On
Apache/2.2.16 (Debian)
nginx/1.9.5
nginx/1.8.0
lighttpd/1.4.41
Vendor Status
[04.02.2020] Vulnerability discovered.
[15.02.2020] Vendor contacted.
[17.02.2020] Vendor responds asking more details.
[17.02.2020] Sent details to the vendor.
[20.02.2020] Asked vendor for status update.
[24.02.2020] Vendor forwards the case to the technicians.
[06.03.2020] Asked vendor for status update.
[21.03.2020] No response from the vendor.
[22.03.2020] Public security advisory released.
PoC
fibaro_rfixss.txt
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
References
[1] https://www.exploit-db.com/exploits/48240
[2] https://packetstormsecurity.com/files/156869
[3] https://cxsecurity.com/issue/WLB-2020030140
[4] https://exchange.xforce.ibmcloud.com/vulnerabilities/178269
Changelog
[22.03.2020] - Initial release
[24.03.2020] - Added reference [1], [2], [3] and [4]
Contact
Zero Science Lab

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