Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify pay-uz payment endpoint
-
DeliverySend crafted request to /payment/api/editable/update
-
ExploitOverwrite PHP hook file via file_put_contents
-
ExecutionTrigger payment workflow require()
-
PersistExecute arbitrary PHP as web user
-
ImpactFull application/host compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions beyond the product being installed and reachable - the /payment/api/editable/update endpoint is exposed by default via Route::any() with no authentication middleware, so remote unauthenticated exploitation works against default configurations of pay-uz <= 2.2.24. The limiting factors are purely about exposure: the Laravel application must have the pay-uz routes registered and the payment/api path reachable by the attacker (internet-facing or otherwise routable), and the PHP process must have write permission to the hook-file directory (the default) and subsequently require() those files during payment processing. The vendor's payment secret token does NOT gate this route and provides no limit. |
| Impact | Every technical signal points to maximal impact: the CVSS 4.0 vector is AV:N/AC:L/AT:N/PR:N/UI:N with high confidentiality, integrity, and availability on both the vulnerable and subsequent systems, yielding a 10.0, and SSVC independently rates Technical Impact as total and Automatable as yes. The one counterweight is exposure: SSVC Exploitation is 'none' (not in CISA KEV), no public PoC is referenced, and EPSS is only 0.89% - low in absolute terms though at the 75th percentile. These are not contradictory but reflect scope: pay-uz is a niche, regional payment library, so real-world attack volume is likely low even though any exploited instance is game-over. This is a genuine drop-everything priority for the specific population that deploys pay-uz, rather than an internet-wide event. The main uncertainty is that all root-cause detail derives from the CVE description and linked source files; NVD enrichment beyond the EUVD mirror is limited. |
| Exploit ScenarioDerived | An attacker who knows a target runs pay-uz sends a single crafted HTTP request (any method) to /payment/api/editable/update, embedding PHP code in the request body. The package writes that content into a payment hook PHP file, and when the next payment-processing flow require()s the file, the attacker's code executes as the web application user, granting a webshell or reverse shell. No credentials, secret token, or user interaction are required, and because SSVC rates it automatable the request can be mass-scripted; no public exploit is identified yet, but the source code and endpoint are documented. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Unauthenticated remote code execution in the goodoneuz/pay-uz Laravel package (all versions through 2.2.24) lets remote attackers overwrite executable PHP payment-hook files through the /payment/api/editable/update endpoint, which is registered via Route::any() with no authentication middleware. User-supplied content is written verbatim with file_put_contents() into PHP files that are later loaded via require() during normal payment processing, so any web-facing deployment can be fully compromised without credentials. CVSS is 10.0 and SSVC rates technical impact as total and the attack as automatable; there is no public exploit identified at time of analysis and EPSS is a modest 0.89% (75th percentile).
RemediationAI
No vendor-released patch or fixed version is identified at time of analysis - the advisory marks pay-uz through 2.2.24 as vulnerable without naming a corrected release, so monitor Packagist (https://packagist.org/packages/goodoneuz/pay-uz) and the upstream repo for a tagged fix and upgrade as soon as one ships. Until then, apply specific compensating controls: block or remove the /payment/api/editable/update route entirely (or place an authentication/authorization middleware and a method allowlist in front of it in your Laravel route definitions), which stops the write primitive at the cost of disabling the editable-hook feature; make the payment hook directory and its PHP files non-writable by the web/PHP-FPM user so file_put_contents() fails, accepting that legitimate hook editing will break; and add a WAF or reverse-proxy rule denying external access to /payment/api/editable/* so only trusted internal callers reach it. Cross-check with the vendor advisories at https://nvd.nist.gov/vuln/detail/CVE-2026-31843 and https://vuldb.com/vuln/357915.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pay-uz is a PHP/Laravel Composer package (distributed via Packagist) that integrates Uzbek payment gateways into Laravel applications. The vulnerability class is CWE-284 (Improper Access Control): the /payment/api/editable/update route is declared in src/routes/web.php with Route::any(), meaning it responds to every HTTP method and is deliberately excluded from any auth or CSRF guard. The handling logic in src/Http/Controllers/ApiController.php takes attacker-controlled request data and passes it straight to file_put_contents() targeting on-disk PHP 'hook' files. Because Laravel later includes those same files with require() as part of the payment workflow, the write primitive is promoted to arbitrary PHP execution - a classic untrusted-file-write-to-include chain. The vendor-referenced payment secret token protects other endpoints and is not checked on this route, so it provides no mitigation.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Unauthenticated network endpoint with no user interaction and low complexity (PR:N/UI:N/AC:L); arbitrary PHP execution yields full C/I/A within the application authority, so S:U.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Any web-facing application using goodoneuz/pay-uz Laravel package through version 2.2.24 can be remotely compromised without credentials, allowing attackers to inject malicious code directly into payment-processing systems. This exposes organizations to full application compromise, payment fraud, customer data theft, and regulatory penalties. The vulnerability directly undermines payment operations and customer trust.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall rules to block requests to /payment/api/editable/update; (2) Restrict network access to payment processing endpoints to known source IPs only; (3) Implement file integrity monitoring on payment-hook PHP files to detect unauthorized modifications; (4) Disable the payment processor if not essential to operations; (5) Enable detailed application logging and alerting for POST/PUT requests to /payment/api/editable/update. Note: Exploitation risk is currently low as no public exploit code exists at time of analysis (EPSS 0.89%), but impact is total if compromised.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-23225
GHSA-m5wg-cjgh-223j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB