
Proof-of-concept for CVE-2024-41301 demonstrating stored cross-site scripting in Bookea-tu-Mesa. Includes vulnerable code analysis and remediation using htmlspecialchars.
Bookea-tu-Mesa is susceptible to a Stored Cross-Site Scripting (XSS) vulnerability. This flaw allows attackers to inject malicious scripts that execute within the context of a 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.
Authors:
Patrick Dean Ramos
Nathu Nandwani
Junnair Manla
Kevin Rosales
Steve Nyan
Shanavas Shakeer
Lani Lambert