vendor:
Cmaps
by:
Lucas Noki (0xPrototype)
7.4
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Cmaps
Affected Version From: 8
Affected Version To: 8
Patch Exists: YES
Related CWE: CVE-2023-29809
CPE: a:vogtmh:cmaps:8.0
Platforms Tested: Mac, Windows, Linux
2023
Cmaps v8.0 – SQL injection
The vulnerability found is an SQL injection. The `bookmap` parameter is vulnerable. When visiting the page: http://192.168.0.56/rest/booking/index.php?mode=list&bookmap=test we get the normal JSON response. However if a single quote gets appended to the value of the `bookmap` parameter we get an error message. Now if two single quotes get appended we get the normal response without an error. This confirms the opportunity for sql injection. To really prove the SQL injection we append the following payload: '-(select*from(select+sleep(2)+from+dual)a)--+. The page will sleep for two seconds. This confirms the SQL injection.
Mitigation:
Input validation and sanitization should be done to prevent SQL injection.