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
Hi,
You have lots of sql injection vulnerabilities. You can write your code with parametrized query for mitigation of sql injection.
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
You have lots of sql injection vulnerabilities. You can write your code with parametrized query for mitigation of sql injection.
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.
The text was updated successfully, but these errors were encountered: