GHSA-m5wg-cjgh-223j
goodoneuz/pay-uz: the /payment/api/editable/update endpoint overwrites existing PHP payment hook files
Quick fix
GHSA-m5wg-cjgh-223j — goodoneuz/pay-uz: upgrade to the fixed version with the command below.
composer require goodoneuz/pay-uz:^3.0.0 Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0 Fixed in: 3.0.0 composer require goodoneuz/pay-uz:^3.0.0 References
- https://nvd.nist.gov/vuln/detail/CVE-2026-31843 [ADVISORY]
- https://github.com/shaxzodbek-uzb/pay-uz/pull/73 [WEB]
- https://github.com/goodoneuz/pay-uz/blob/master/src/Http/Controllers/ApiController.php [WEB]
- https://github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php [WEB]
- https://github.com/shaxzodbek-uzb/pay-uz [PACKAGE]
- https://github.com/shaxzodbek-uzb/pay-uz/releases/tag/3.0.0 [WEB]
- https://packagist.org/packages/goodoneuz/pay-uz [WEB]