提交 #832535: tittuvarghese CollegeManagementSystem 1.0 SQL Injection信息

标题tittuvarghese CollegeManagementSystem 1.0 SQL Injection
描述The `fetch.php` endpoint is used to fetch course data based on a `department_code` parameter sent via POST. The script directly embeds the user‑supplied value into an SQL query without any sanitisation or parameterisation: ```php $department_code = $_POST['department_code']; $sql = mysql_query("SELECT * FROM `courses` WHERE department_code='$department_code' ORDER BY id DESC"); ``` Because the endpoint lacks any authentication (no session check is performed), an unauthenticated attacker can inject arbitrary SQL syntax into the department_code field. Even though the immediate output is a JSON‑encoded array of values, the underlying SQL injection is exploitable—for instance, using boolean‑based or time‑based blind techniques to extract sensitive information from the database.
来源⚠️ https://github.com/tittuvarghese/CollegeManagementSystem/issues/3
用户 Nicole_mo (UID 98333)
提交2026-05-18 16時04分 (5 月前)
管理2026-06-05 10時10分 (18 days later)
状态已接受
VulDB条目368872 [tittuvarghese CollegeManagementSystem fetch.php department_code SQL注入]
积分20

Do you want to use VulDB in your project?

Use the official API to access entries easily!