| 标题 | CampCodes Administrator Complete POS Management And Inventory System v4.0.6 remote |
|---|
| 描述 | 1. Arbitrary Environment Variable Injection via Insufficient Sanitization:
- The backend API responsible for updating system configurations (such as Twilio SMS settings) fails to properly sanitize user input before writing it to the root `.env` configuration file.
- An authenticated attacker can insert newline characters (`\n`) within the JSON payload. When the backend processes this, it breaks out of the intended variable definition and injects arbitrary, attacker-controlled environment variables directly into the `.env` file.
2. Configuration Override via `.env` Parsing Behavior:
- The Laravel framework parses the `.env` file sequentially from top to bottom. If a variable is defined multiple times, the last occurrence takes precedence.
- By injecting into settings that are typically stored at the bottom of the `.env` file (e.g., `TWILIO_FROM`), the attacker's injected variable effectively overrides critical system variables defined earlier, such as `DUMP_PATH` (which dictates the executable path for the `mysqldump` utility).
3. Remote Code Execution (RCE) Impact:
- When an administrator triggers the "Generate Backup" function, the application reads the poisoned `DUMP_PATH` variable and concatenates it directly into a system command executed via PHP's `exec()` function without adequate escaping.
- This allows the attacker to execute arbitrary Operating System commands (e.g., `certutil`, `curl`, `whoami`) with the privileges of the Web Server (e.g., Apache/Nginx), leading to complete system compromise, data exfiltration, and unauthorized access. |
|---|
| 来源 | ⚠️ https://github.com/whatyourname12345/CVE/tree/main/POS |
|---|
| 用户 | chenkh (UID 96588) |
|---|
| 提交 | 2026-03-19 11時14分 (4 月前) |
|---|
| 管理 | 2026-04-04 16時04分 (16 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 355331 [Campcodes Complete POS Management and Inventory System 直到 4.0.6 Environment Variable SettingsController.php 权限提升] |
|---|
| 积分 | 20 |
|---|