Critical, CVSS 10.0PackagistPublished
goodoneuz/pay-uz: the /payment/api/editable/update endpoint overwrites existing PHP payment hook files
CVE-2026-31843 · GHSA-m5wg-cjgh-223j
- Affected
- Packagist goodoneuz/pay-uz <= 2.2.24
- Fixed in
- 3.0.0· Vendor fix available
- Issue
- 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 fileputcontents(). 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.
Recommended action: Upgrade to 3.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.