Advisory

GHSA-m5wg-cjgh-223j

Also known as: CVE-2026-31843

Summary

goodoneuz/pay-uz: the /payment/api/editable/update endpoint overwrites existing PHP payment hook files

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-04-16 15:31 UTC
Modified
2026-07-27 15:15 UTC

Affected packages and fixes

goodoneuz/pay-uz

Packagist · All systems

Affected

  • introduced 0, fixed 3.0.0 (ecosystem)

Fixed versions

3.0.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences