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 XSS vulnerability #2

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

Movie Ticket Booking System-PHP XSS vulnerability #2

huclilu opened this issue Dec 1, 2022 · 0 comments

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 XSS vulnerability

There is an XSS vulnerability in Booking In PHP, at line 111, we can see that the value is equal to the value of the variable $id, and the $id controllable variable is determined by user input and output directly. At this time, we can construct a closed XSS statement. The payload is "><script>alert (" ace ")</script>, and then we can construct a pop-up window

<input type="hidden" name="movie_id" value="<?php echo $id; ?>">

POC:

http://vulcinema.test/booking.php?id=5%22%3E%3Cscript%3Ealert(%22ace%22)%3C/script%3E

1130alert

@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