Home

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. 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.

PUBLISHED Reserved 2026-03-09 | Published 2026-04-16 | Updated 2026-04-16 | Assigner TuranSec




CRITICAL: 10.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

CRITICAL: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

10.0AV:N/AC:L/Au:N/C:C/I:C/A:C

Problem types

CWE-284 Improper Access Control leading to unauthorized modification of executable application files

Product status

Default status
affected

<= 2.2.24
affected

References

github.com/shaxzodbek-uzb/pay-uz product

github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php issue-tracking

github.com/.../master/src/Http/Controllers/ApiController.php issue-tracking

packagist.org/packages/goodoneuz/pay-uz product

cve.org (CVE-2026-31843)

nvd.nist.gov (CVE-2026-31843)

Download JSON