Created
November 25, 2020 15:02
-
-
Save kdrypr/999a245abb4511d43e41df1ccdbcf0cb to your computer and use it in GitHub Desktop.
Online-food-ordering-system SQL Injection Vulnerability
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
They include all external parameters directly in the sql query. | |
For example-1: | |
https://github.com/tourist5/Online-food-ordering-system/blob/main/all-tickets.php | |
if(isset($_GET['status'])){ | |
$status = $_GET['status']; | |
} | |
else{ | |
$status = '%'; | |
} | |
$sql = mysqli_query($con, "SELECT * FROM comments WHERE status LIKE '$status';"); | |
You can exploit the parameter of $status. | |
Example-2: | |
https://github.com/tourist5/Online-food-ordering-system/blob/main/view-ticket.php | |
You can exploit $id parameter. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment