A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2018-25397

CVE-2018-25397: PHP-SHOP 1.0 CSRF Vulnerability

CVE-2018-25397 is a cross-site request forgery flaw in PHP-SHOP 1.0 that allows attackers to create unauthorized admin accounts. This post covers the technical details, affected versions, impact, and mitigation.

Published: June 4, 2026

CVE-2018-25397 Overview

CVE-2018-25397 is a Cross-Site Request Forgery (CSRF) vulnerability [CWE-352] in PHP-SHOP 1.0, an open-source PHP shopping cart application maintained on GitHub by joeyrush. The flaw resides in the users.php administrative endpoint, which accepts state-changing POST requests without validating an anti-CSRF token or verifying the request origin. An attacker can host a malicious HTML page that auto-submits a forged form to create a new administrator account when an authenticated admin visits the page. Successful exploitation yields persistent administrative access to the affected shop instance.

Critical Impact

Attackers can silently create attacker-controlled administrator accounts in PHP-SHOP 1.0 by tricking a logged-in administrator into loading a crafted web page.

Affected Products

  • PHP-SHOP 1.0 (joeyrush/PHP-SHOP)
  • Deployments using the users.php administrative endpoint
  • Any forked or derivative codebase retaining the unpatched users.php handler

Discovery Timeline

  • 2018 - Public proof-of-concept published as Exploit-DB #45636
  • 2026-05-29 - CVE-2018-25397 published to NVD
  • 2026-05-29 - Last updated in NVD database

Technical Details for CVE-2018-25397

Vulnerability Analysis

The vulnerability is a classic CSRF flaw in the administrative user management workflow. PHP-SHOP 1.0 exposes users.php as the endpoint for creating and modifying user accounts, but the handler relies solely on the administrator's session cookie for authorization. It does not require a per-request CSRF token, does not validate the Origin or Referer header, and does not enforce a SameSite policy on the session cookie. As a result, any cross-origin POST submitted by an authenticated administrator's browser is processed as a legitimate request. The endpoint accepts name, email, password, and permissions parameters and writes the new account directly to the database when permissions=admin is supplied.

Root Cause

The root cause is missing CSRF protection on a state-changing administrative endpoint, classified under [CWE-352]. The application trusts session-based authentication exclusively and does not bind requests to a token tied to the user's session. There is no server-side check that the POST originated from an in-application form, which permits cross-origin form submissions to mutate server state.

Attack Vector

Exploitation requires social engineering: an authenticated PHP-SHOP administrator must visit an attacker-controlled web page while their session is active. The page hosts a hidden HTML form targeting the administrator's PHP-SHOP users.php endpoint with method POST and fields for name, email, password, and permissions=admin. JavaScript on the page submits the form automatically. The victim's browser attaches the active session cookie, the server processes the request as authorized, and a new administrator account is created with credentials known to the attacker. No interaction with the form itself is required from the victim. Technical details and a working proof-of-concept are documented in the VulnCheck Advisory on PHP-SHOP CSRF and Exploit-DB #45636.

Detection Methods for CVE-2018-25397

Indicators of Compromise

  • Unexpected administrator accounts present in the PHP-SHOP users table, particularly accounts with unfamiliar name or email values and permissions=admin.
  • Web server access logs showing POST /users.php requests whose Referer header points to a domain outside the application.
  • POST /users.php requests immediately following navigation events to external sites by administrator IP addresses.
  • New account creation events that lack a corresponding prior GET to the admin user-creation form.

Detection Strategies

  • Review PHP-SHOP database tables for administrator accounts that were not provisioned through change-management processes.
  • Parse web server logs for POST requests to users.php with missing, empty, or cross-origin Referer and Origin headers.
  • Correlate session activity to flag administrative actions that occur within seconds of an admin loading an external URL.
  • Implement web application firewall rules that alert on users.php POST requests containing permissions=admin.

Monitoring Recommendations

  • Forward PHP-SHOP web server and application logs to a centralized logging platform and alert on administrative account creation.
  • Monitor outbound browser activity from administrator workstations for visits to untrusted domains while admin sessions are active.
  • Establish a baseline of legitimate administrator account changes and alert on deviations.

How to Mitigate CVE-2018-25397

Immediate Actions Required

  • Audit the PHP-SHOP users table and remove any unrecognized administrator accounts.
  • Force a password reset and session invalidation for all existing administrators.
  • Restrict access to the /admin and users.php paths to trusted internal IP ranges using web server access controls.
  • Instruct administrators to log out of PHP-SHOP before browsing unrelated sites until a fix is in place.

Patch Information

No official vendor patch is referenced in the advisory data for CVE-2018-25397. Operators should apply application-level fixes by adding a synchronizer token pattern (anti-CSRF token) to all state-changing forms in users.php, validating the Origin and Referer headers on POST requests, and setting the session cookie to SameSite=Strict. Review the upstream repository at the GitHub PHP-SHOP Archive before deploying any code changes.

Workarounds

  • Place the PHP-SHOP administrative interface behind an authenticated reverse proxy or VPN that enforces additional origin checks.
  • Configure the session cookie with SameSite=Strict and Secure attributes in PHP via session_set_cookie_params() to block cross-site cookie attachment.
  • Add a web application firewall rule that blocks POST requests to users.php lacking an in-application Referer header.
  • Disable or remove the users.php endpoint if administrator provisioning can be performed directly against the database.
bash
# Example: enforce SameSite and Secure cookies in php.ini
session.cookie_samesite = "Strict"
session.cookie_secure = 1
session.cookie_httponly = 1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechPhp Shop

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-352
  • Technical References
  • GitHub PHP-SHOP Archive

  • Exploit-DB #45636

  • VulnCheck Advisory on PHP-SHOP CSRF
  • Latest CVEs
  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs DoS Vulnerability

  • CVE-2026-42951: MacGregor VDR Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English