Submit #1064093: SourceCodester Basic Hotel Online Reservation System using PHP v1.0 /HOR/add_reserve.php POST 'date' SQL injection 1.0 SQL Injectioninfo

TitelSourceCodester Basic Hotel Online Reservation System using PHP v1.0 /HOR/add_reserve.php POST 'date' SQL injection 1.0 SQL Injection
BeschreibungDuring the security review of "Basic Hotel Online Reservation System using PHP", I discovered a SQL injection vulnerability in the "/HOR/add_reserve.php" file. This vulnerability stems from insufficient user input validation of the POST parameter 'date', allowing attackers to inject malicious SQL queries. A single quote appended to the date field triggers a raw MySQL syntax error which also leaks a fragment of the back-end SQL (the room-availability check ... && status = 'Pending'), and error-based injection with extractvalue() successfully exfiltrates data. Immediate remedial measures are needed to ensure system security and protect data integrity.
Quelle⚠️ https://github.com/hubdk01/cve/issues/14
Benutzer
 hubdk01 (UID 99481)
Einreichung29.10.2026 09:26 (vor 28 Tagen)
Moderieren26.11.2026 12:06 (28 days later)
StatusAkzeptiert
VulDB Eintrag444287 [SourceCodester Basic Hotel Online Reservation System 1.0 add_reserve.php date SQL Injection]
Punkte20

Do you want to use VulDB in your project?

Use the official API to access entries easily!