CVE-2026-31843: CWE-284 Improper Access Control leading to unauthorized modification of executable application files in goodoneuz pay-uz
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.
AI Analysis
Technical Summary
CVE-2026-31843 is an improper access control vulnerability (CWE-284) in the goodoneuz/pay-uz Laravel package (<= 2.2.24). The vulnerability exists in the /payment/api/editable/update endpoint, which is exposed via Route::any() without authentication middleware, allowing unauthenticated remote attackers to write arbitrary PHP code into payment hook files using file_put_contents(). These files are subsequently executed via require() during normal payment workflows, resulting in remote code execution. The vendor's payment secret token is unrelated and does not protect this endpoint. The CVSS 4.0 base score is 10.0, indicating critical severity. No patch or official remediation is currently documented.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to achieve remote code execution on the affected system by overwriting executable PHP files used in payment processing. This can lead to full compromise of the application environment. The vulnerability has a CVSS 4.0 score of 10.0, reflecting its critical impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to the vulnerable endpoint by implementing authentication and input validation controls. Avoid exposing the /payment/api/editable/update endpoint publicly and monitor for unauthorized file modifications. Do not rely on the payment secret token as it does not mitigate this vulnerability.
CVE-2026-31843: CWE-284 Improper Access Control leading to unauthorized modification of executable application files in goodoneuz pay-uz
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-31843 is an improper access control vulnerability (CWE-284) in the goodoneuz/pay-uz Laravel package (<= 2.2.24). The vulnerability exists in the /payment/api/editable/update endpoint, which is exposed via Route::any() without authentication middleware, allowing unauthenticated remote attackers to write arbitrary PHP code into payment hook files using file_put_contents(). These files are subsequently executed via require() during normal payment workflows, resulting in remote code execution. The vendor's payment secret token is unrelated and does not protect this endpoint. The CVSS 4.0 base score is 10.0, indicating critical severity. No patch or official remediation is currently documented.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to achieve remote code execution on the affected system by overwriting executable PHP files used in payment processing. This can lead to full compromise of the application environment. The vulnerability has a CVSS 4.0 score of 10.0, reflecting its critical impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to the vulnerable endpoint by implementing authentication and input validation controls. Avoid exposing the /payment/api/editable/update endpoint publicly and monitor for unauthorized file modifications. Do not rely on the payment secret token as it does not mitigate this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-03-09T18:20:23.398Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e0e14482d89c981f87fef2
Added to database: 4/16/2026, 1:16:52 PM
Last enriched: 4/16/2026, 1:31:49 PM
Last updated: 4/17/2026, 1:30:30 AM
Views: 15
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.