| Title | Campcodes Online Hotel Reservation System 1.0 Missing Authorization |
|---|
| Description | A missing authorization vulnerability has been found in Campcodes Online Hotel Reservation System 1.0. The admin display pages include admin/validate.php, which checks the admin_id session variable, but the state-changing action endpoints do not include it. admin/add_query_room.php and admin/edit_query_room.php are reachable without a session and store an uploaded file under /photo/ using the client-supplied file name with no type or extension validation (move_uploaded_file), then insert the POST parameters room_type, price and the file name into SQL unescaped; admin/delete_account.php deletes rows from the admin table via the admin_id GET parameter without authentication; admin/delete_pending.php, admin/checkout_query.php, admin/save_form.php and admin/confirm_reserve.php allow unauthenticated DELETE and UPDATE operations on transaction and reservation records. The application implements no anti-CSRF tokens, so the same requests can be issued cross-site. Proof: GET /admin/add_query_room.php with no session cookie renders the add-room form; POST with add_room=1, room_type set to x' and price=1 plus any file upload writes the file into /photo/ and returns a MySQL error via die(mysqli_error()), confirming injection. CWE-862 on all listed endpoints, with CWE-434 (unrestricted upload) and CWE-89 on the room endpoints. CVSS 3.1 base vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8), anchored on the unauthenticated upload plus injection. Affected files and parameters: admin/add_query_room.php (photo, room_type, price), admin/edit_query_room.php, admin/delete_account.php (admin_id), admin/delete_pending.php, admin/checkout_query.php, admin/save_form.php, admin/confirm_reserve.php. Deduplication: the VulDB entry list for the Online Hotel Reservation System family (46 items) was enumerated via the API on 2026-11-09; searches for add_query_room and edit_query_room return zero items. Entries under sibling vendor labels of the same codebase cover other files or only the injection symptom: CVE-2025-6578, CVE-2025-6451, CVE-2025-6450, CVE-2025-6449 (SQL injection in delete_account.php, delete_pending.php, confirm_reserve.php, checkout_query.php under the code-projects Simple label), CVE-2025-8378 to 8382 (Campcodes: admin/index.php, admin/edit_room.php, add_query_account.php, add_reserve.php), CVE-2025-13169 (add_query_reserve.php). None disclose the missing authentication root cause or the unauthenticated file upload. The vendor was contacted on 2026-11-11; public write-up linked below. |
|---|
| Source | ⚠️ https://github.com/jasperjjhe/php-mini-project-advisories/blob/main/B1-hotel-reservation-missing-auth.md |
|---|
| User | jasperjjhe (UID 102844) |
|---|
| Submission | 11/10/2026 19:18 (20 days ago) |
|---|
| Moderation | 11/30/2026 23:05 (20 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 446852 [Campcodes Online Hotel Reservation System 1.0 Admin Panel edit_query_room.php room_type/price authorization] |
|---|
| Points | 20 |
|---|