| शीर्षक | Mstfakts College-Management-System 82ab01d057d96c8893c419cd9cb6870120faaea3 SQL Injection |
|---|
| विवरण | The affected components are `Front-end/university.php:117-140` and `Front-end/faculty.php:114-138`. Each unauthenticated book-search handler inserts the attacker-controlled `book_name` and `book_author` POST parameters directly into a SQL statement and executes it with `mysqli_query()`:
```php
$name=$_POST['book_name'];
$author=$_POST['book_author'];
$query = "SELECT * FROM book WHERE book_name = '$name' AND author = '$author'";
$results = mysqli_query($db, $query);
```
Neither endpoint validates nor parameterizes the values, and neither enforces an authenticated session before reaching the query. A remote attacker can use a four-column `UNION SELECT` to read arbitrary database rows. The returned columns are written into the HTML result table, allowing disclosure of account records, password hashes, phone numbers, and role data from the `visitor` table. The same primitive can be adapted to enumerate other accessible tables and records. |
|---|
| स्रोत | ⚠️ https://github.com/Mstfakts/College-Management-System/issues/5 |
|---|
| उपयोगकर्ता | Yangqiangfeng (UID 98164) |
|---|
| सबमिशन | 20/07/2026 11:03 AM (2 महीनों पहले) |
|---|
| संयम | 05/09/2026 08:59 PM (2 months later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 399349 [Mstfakts College-Management-System Search Front-end/university.php mysqli_query book_name/book_author SQL इंजेक्शन] |
|---|
| अंक | 20 |
|---|