Submit #1064101: SourceCodester Basic Hotel Online Reservation System using PHP 1.0 1.0 Unrestricted Uploadinfo

TitleSourceCodester Basic Hotel Online Reservation System using PHP 1.0 1.0 Unrestricted Upload
DescriptionUser can upload file through /HOR/admin/add_room.php Web application doesn't sanitize or filter the file being uploaded, making it vulnerable to unrestricted file upload vulnerability, that can also lead to Remote Code Execution. The upload handler does not validate the file extension, the Content-Type, or the file content in any way. Any file submitted through the "photo" field is stored in the web-accessible directory /HOR/photo/ under its original filename. Uploading a PHP script therefore places executable code directly inside the document root, and opening the file in the browser executes it with the web server's privileges. Note: the administrator credentials used to reach this form were themselves obtained without any special access — the companion SQL injection in /HOR/add_reserve.php?room_id= exposes the plaintext admin credentials (Admin / admin) to any unauthenticated visitor, so in a real attack chain no prior knowledge of any secret is required.
Source⚠️ https://github.com/hubdk01/cve/issues/15
User
 hubdk01 (UID 99481)
Submission10/29/2026 09:43 (28 days ago)
Moderation11/26/2026 12:06 (28 days later)
StatusAccepted
VulDB entry444288 [SourceCodester Basic Hotel Online Reservation System 1.0 /HOR/admin/add_room.php photo unrestricted upload]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!