10.0critical
goodoneuz/pay-uz Unauthenticated PHP File Overwrite via /payment/api/editable/update Leading to Remote Code Execution
- Severity
- 10.0critical CVSS:4.0 by TuranSec
- Exploit likelihood
- 1.41% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- TuranSec
- Also known as
- GHSA-m5wg-cjgh-223j
Description
The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a critical vulnerability in the /payment/api/editable/update endpoint that allows unauthenticated attackers to overwrite existing PHP payment hook files. The endpoint is exposed via Route::any without authentication middleware, enabling remote access without credentials.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| goodoneuz/pay-uz | <= 2.2.24 | CVE List |
| goodoneuz/pay-uz (Packagist) | before 3.0.0 | GitHub Advisory Database |
All scores
| TuranSec | 10.0critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| TuranSec | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| TuranSec | 10.0critical CVSS:2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a critical vulnerability in the /payment/api/editable/update endpoint that allows unauthenticated attackers to overwrite existing PHP payment hook files. The endpoint is exposed via Route::any without authentication middleware, enabling remote access without credentials.
GitHub Advisory Database
The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a critical vulnerability in the /payment/api/editable/update endpoint that allows unauthenticated attackers to overwrite existing PHP payment hook files. The endpoint is exposed via Route::any() without authentication middleware, enabling remote access without credentials. User-controlled input is directly written into executable PHP files using file_put_contents(). These files are later executed via require() during normal payment processing workflows, resulting in remote code execution under default application behavior. The payment secret token mentioned by the vendor is unrelated to this endpoint and does not mitigate the vulnerability.
NVD (es)
El paquete Laravel goodoneuz/pay-uz (menor o igual que 2.2.24) contiene una vulnerabilidad crítica en el endpoint /payment/API/editable/update que permite a atacantes no autenticados sobrescribir archivos PHP de gancho de pago existentes. El endpoint está expuesto a través de Route::any() sin middleware de autenticación, lo que permite el acceso remoto sin credenciales. La entrada controlada por el usuario se escribe directamente en archivos PHP ejecutables usando file_put_contents(). Estos archivos se ejecutan posteriormente a través de require() durante los flujos de trabajo normales de procesamiento de pagos, lo que resulta en ejecución remota de código bajo el comportamiento predeterminado de la aplicación. El token secreto de pago mencionado por el proveedor no está relacionado con este endpoint y no mitiga la vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31843 changed 2026-08-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m5wg-cjgh-223j changed 2026-07-27 | CC-BY-4.0 |
| NVD | CVE-2026-31843 changed 2026-10-26 | Public domain |