The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2020-4074

CVE-2020-4074: PrestaShop Auth Bypass Vulnerability

CVE-2020-4074 is an authentication bypass flaw in PrestaShop that allows attackers to forge requests and execute admin commands. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-4074 Overview

CVE-2020-4074 is an authentication bypass vulnerability in PrestaShop, a popular open-source e-commerce platform. The vulnerability exists in versions from 1.5.0.0 up to (but not including) 1.7.6.6. Due to a malformed authentication system, attackers can forge requests and execute administrative commands without proper authorization, potentially leading to complete compromise of affected PrestaShop installations.

Critical Impact

Unauthenticated attackers can forge requests to execute admin commands, potentially taking full control of PrestaShop e-commerce stores, accessing customer data, and manipulating transactions.

Affected Products

  • PrestaShop versions 1.5.0.0 through 1.7.6.5
  • All PrestaShop deployments running vulnerable versions
  • E-commerce stores using PrestaShop as their platform

Discovery Timeline

  • 2020-07-02 - CVE-2020-4074 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-4074

Vulnerability Analysis

This vulnerability is classified as CWE-287 (Improper Authentication). The authentication system in PrestaShop contained a fundamental flaw that allowed attackers to bypass authentication controls. The vulnerability enables unauthenticated network-based attacks that require no user interaction and no special privileges, making it particularly dangerous for publicly accessible e-commerce installations.

The flaw resides in how PrestaShop handles session registration and cookie validation. Without proper session binding and validation, attackers could craft malicious requests that the system would interpret as authenticated administrative actions.

Root Cause

The root cause stems from improper session management within the authentication subsystem. The Cookie and Context classes did not properly register and validate session tokens when establishing authenticated sessions. This allowed attackers to forge requests that bypassed the intended authentication flow. The fix introduced proper session registration using a CustomerSession object and added necessary security imports to the cookie handling class.

Attack Vector

The attack is network-based and can be executed remotely against any publicly accessible PrestaShop installation. An attacker does not need any prior authentication or privileges to exploit this vulnerability. The attack requires no user interaction, meaning it can be fully automated. By forging HTTP requests with manipulated session data, attackers can execute administrative commands, potentially leading to complete takeover of the e-commerce platform.

php
// Security patch excerpt from classes/Context.php
// Source: https://github.com/PrestaShop/PrestaShop/commit/30b6a7bdaca9cb940d3ce462906dbb062499fc30
         $this->cookie->id_cart = (int) $this->cart->id;
         $this->cookie->write();
         $this->cart->autosetProductAddress();
+
+        $this->cookie->registerSession(new CustomerSession());
     }

     /**

The patch adds proper session registration using CustomerSession() to ensure authenticated sessions are properly bound and validated.

php
// Security patch excerpt from classes/Cookie.php
// Source: https://github.com/PrestaShop/PrestaShop/commit/30b6a7bdaca9cb940d3ce462906dbb062499fc30
  * International Registered Trademark & Property of PrestaShop SA
  */
 use Defuse\Crypto\Key;
+use PrestaShop\PrestaShop\Core\Exception\CoreException;
+use PrestaShop\PrestaShop\Core\Session\SessionInterface;

class CookieCore
{

The Cookie class now imports the necessary session interface to properly validate session authenticity.

Detection Methods for CVE-2020-4074

Indicators of Compromise

  • Unusual administrative actions in PrestaShop logs without corresponding admin login events
  • HTTP requests to admin endpoints from unexpected IP addresses or user agents
  • Database modifications (orders, customers, products) without matching admin session records
  • Anomalous cookie patterns or malformed session tokens in web server logs

Detection Strategies

  • Monitor web server access logs for requests to /admin*/ endpoints without valid session establishment
  • Implement web application firewall (WAF) rules to detect request forgery attempts
  • Review PrestaShop admin activity logs for actions that don't correlate with legitimate admin sessions
  • Deploy network intrusion detection signatures for suspicious authentication bypass patterns

Monitoring Recommendations

  • Enable verbose logging for PrestaShop authentication events
  • Configure alerts for administrative actions from new or unexpected source IPs
  • Monitor for bulk or automated requests to administrative endpoints
  • Implement real-time log analysis for authentication anomalies

How to Mitigate CVE-2020-4074

Immediate Actions Required

  • Upgrade PrestaShop to version 1.7.6.6 or later immediately
  • Audit administrative actions taken during the vulnerable period
  • Review user accounts for any unauthorized additions or modifications
  • Check for any unauthorized changes to store configuration, products, or payment settings

Patch Information

PrestaShop has released version 1.7.6.6 which addresses this vulnerability. The fix is available in the official security commit. The patch introduces proper session registration through the CustomerSession class and adds the necessary session interface imports to the Cookie class for proper authentication validation.

For detailed information about this vulnerability, refer to the GitHub Security Advisory GHSA-ccvh-jh5x-mpg4.

Workarounds

  • Place the PrestaShop admin panel behind a VPN or IP whitelist if immediate patching is not possible
  • Implement additional authentication layers (e.g., HTTP Basic Auth) in front of the admin directory
  • Deploy a Web Application Firewall (WAF) with rules to filter suspicious authentication attempts
  • Temporarily restrict network access to the PrestaShop admin panel until the patch can be applied
bash
# Configuration example: Restrict admin access by IP in Apache .htaccess
# Place this in your PrestaShop admin directory
<Directory "/var/www/html/prestashop/admin*">
    Order Deny,Allow
    Deny from all
    Allow from 192.168.1.0/24
    Allow from 10.0.0.0/8
</Directory>

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPrestashop

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-287
  • Technical References
  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2026-25597: PrestaShop Auth Bypass Vulnerability

  • CVE-2025-61922: PrestaShop Checkout Auth Bypass Vulnerability

  • CVE-2026-33674: PrestaShop Validation Framework Flaw

  • CVE-2026-33673: PrestaShop Stored XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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