PatchSiren cyber security CVE debrief
CVE-2018-25397 joeyrush CVE debrief
PHP-SHOP 1.0 contains a cross-site request forgery (CSRF) vulnerability in the users.php endpoint. An unauthenticated attacker can craft a malicious HTML form that, when visited by an authenticated administrator, automatically submits a POST request to create a new administrative user with elevated privileges. The vulnerability stems from missing CSRF token validation on the user creation functionality, allowing state-changing actions to be performed without verifying the request originated from a legitimate application session.
- Vendor
- joeyrush
- Product
- PHP-SHOP master
- CVSS
- MEDIUM 6.9
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-29
- Original CVE updated
- 2026-07-21
- Advisory published
- 2026-05-29
- Advisory updated
- 2026-07-21
Who should care
Organizations running PHP-SHOP 1.0; web application security teams; developers maintaining legacy PHP e-commerce platforms
Technical summary
The users.php endpoint in PHP-SHOP 1.0 fails to validate CSRF tokens on POST requests for user creation. An attacker can construct an HTML form with hidden fields preset to create an administrative user (name, email, password, permissions=admin) and host it on an attacker-controlled domain. When an authenticated administrator visits the malicious page, the form auto-submits via JavaScript or is triggered by social engineering, causing the browser to include the administrator's session cookies with the request. The server processes the request as legitimate, creating the unauthorized admin account. No anti-CSRF tokens, origin validation, or referer checking prevents this attack.
Defensive priority
medium
Recommended defensive actions
- Implement CSRF token validation on all state-changing endpoints, particularly users.php
- Add SameSite cookie attributes to session cookies to mitigate cross-origin request risks
- Require re-authentication or secondary confirmation for sensitive administrative actions such as user creation with elevated privileges
- Review and audit all administrative endpoints for missing CSRF protections
- Consider implementing Content Security Policy (CSP) headers to reduce impact of injected malicious forms
Evidence notes
CVE published 2026-05-29T16:16:19.237Z; modified 2026-05-29T16:29:11.350Z. VulnCheck advisory confirms CSRF via users.php endpoint with parameters including name, email, password, and permissions. Exploit-DB entry 45636 documents the attack vector. CVSS 4.0 vector indicates network attack vector with low attack complexity, no privileges required, and no user interaction required for the attacker (though victim administrator interaction is implied by CSRF nature). Weakness classified as CWE-352 (Cross-Site Request Forgery).
Sources and references
Verified primary and authoritative sources
-
CVE-2018-25397 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2018-25397
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2018-25397 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2018-25397
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/joeyrush/PHP-SHOP/archive/master.zip
-
Source reference
Unverified legacy reference
URL: https://www.exploit-db.com/exploits/45636
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/php-shop-cross-site-request-forgery-via-users-php
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.