漏洞关键信息 漏洞详情 EDB-ID: 50543 CVE: N/A 作者: Abhijeet Singh 类型: WEBAPPS 平台: PHP 日期: 2021-11-23 验证: EDB Verified 漏洞描述 名称: Bus Pass Management System 1.0 - 'Search' SQL injection 描述: SQL injection is a web security vulnerability that allows an attacker to alter the SQL queries made to the database. This can be used to retrieve some sensitive information, like database structure, tables, columns, and their underlying data. 攻击向量 描述: An attacker can compromise the database of the application using some automated(or manual) tools like SQLmap. 复现步骤 步骤 1: Open 'View Pass' page using following URL: http://127.0.0.1/buspassms/download-pass.php 步骤 2: Now put the below payload in the 'Search' field. Payload: 123' AND (SELECT 7169 FROM (SELECT(SLEEP(4)))abhij) AND 'x'='x 步骤 3: Server accepted our payload and the response got delayed by 4 seconds. 影响 描述: As the vulnerable parameter is an external parameter (credentials not required), an attacker can dump the database of the application remotely. 建议缓解措施 建议:** Parameterized queries should be used to separate the command and data portions of the intended query to the database. Additionally, input validation should be enforced on the server side in order to ensure that only expected data is sent in queries.