edgarjrivera / bookea-tu-mesa Goto Github PK
View Code? Open in Web Editor NEWBookea tu Mesa is a restaurant reservation web page for restaurants in Puerto Rico
Home Page: https://edgarjrivera.github.io/Bookea-tu-Mesa/
Bookea tu Mesa is a restaurant reservation web page for restaurants in Puerto Rico
Home Page: https://edgarjrivera.github.io/Bookea-tu-Mesa/
We have discovered a SQL Injection vulnerability in Bookea-tu-Mesa. This vulnerability allows an attacker to inject malicious SQL statements which can manipulate or disclose data in the database.
Steps to Reproduce:
Vulnerable Code:
The vulnerability exists in insert_reservation.php at the following lines:
Line 40: $query = "SELECT * FROM reservaciones WHERE RestaurantName LIKE '%$search_query%' OR FullName LIKE '%$search_query%'";
Line 41: $result = $conex->query($query);
Line 87:$result->free();
Suggested Fix:
Use prepared statements with parameterized queries to prevent SQL injection. Here is the revised code:
// insert_reservation.php
$query = "SELECT * FROM reservaciones WHERE RestaurantName LIKE ? OR FullName LIKE ?";
$stmt = $conex->prepare($query);
$search_with_wildcards = '%' . $search_query . '%';
$stmt->bind_param('ss', $search_with_wildcards, $search_with_wildcards);
$stmt->execute();
$result = $stmt->get_result();
$stmt->close();
CVE Consideration:
I believe this issue warrants a CVE ID because it poses a significant security risk. I am willing to coordinate with you on the CVE submission process if you agree that this issue meets the criteria.
We have discovered a Stored Cross-Site Scripting (XSS) vulnerability in Bookea-tu-Mesa. This vulnerability allows an attacker to inject malicious scripts which are executed in the context of the user's session.
Steps to Reproduce:
Vulnerable Code:
File: insert_reservation.php
Line 11: $Fname = mysqli_real_escape_string($conex, $_POST['Fname']);
Suggested Fix:
$Fname = htmlspecialchars(mysqli_real_escape_string($conex, $_POST['Fname']), ENT_QUOTES, 'UTF-8');
This would sanitize the HTML character.
CVE Consideration: I believe this issue warrants a CVE ID because it poses a significant security risk. I am willing to coordinate with you on the CVE submission process if you agree that this issue meets the criteria.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.