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
    • 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-2021-47923

CVE-2021-47923: OpenCart Session Fixation Vulnerability

CVE-2021-47923 is a session fixation flaw in OpenCart 3.0.3.8 that enables attackers to hijack user sessions through OCSESSID cookie manipulation. This article covers technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2021-47923 Overview

CVE-2021-47923 is a session fixation vulnerability in OpenCart 3.0.3.8, an open-source e-commerce platform. The flaw allows attackers to inject arbitrary values into the OCSESSID cookie. The server accepts and maintains these attacker-supplied session identifiers without regeneration. An attacker who tricks a victim into using a known OCSESSID value can hijack the authenticated session once the victim logs in. This results in account takeover and unauthorized access to user data and order history. The weakness is classified under CWE-290: Authentication Bypass by Spoofing.

Critical Impact

Network-based attackers can hijack authenticated user sessions and access victim accounts without credentials by pre-setting the OCSESSID cookie value.

Affected Products

  • OpenCart 3.0.3.8
  • OpenCart 3.x branch installations using default session handling
  • Web storefronts relying on the OCSESSID cookie for session state

Discovery Timeline

  • 2026-05-10 - CVE-2021-47923 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2021-47923

Vulnerability Analysis

OpenCart 3.0.3.8 issues session identifiers through the OCSESSID cookie. The application accepts a client-supplied OCSESSID value and binds the subsequent authentication state to that identifier. The server does not regenerate the session identifier after a successful login. Any session ID an attacker plants in the victim's browser becomes a valid authenticated session once the victim signs in.

This matches the classic session fixation pattern. The attacker controls the session token before authentication occurs, then reuses that same token after the victim authenticates. Because OpenCart trusts arbitrary OCSESSID values without rotating them at privilege boundaries, the attacker and victim end up sharing the same authenticated session context.

Root Cause

The root cause is the absence of session identifier regeneration during authentication state changes. Secure session management requires invalidating any pre-login session token and issuing a fresh, server-generated identifier upon login. OpenCart 3.0.3.8 instead persists the existing OCSESSID across the authentication boundary, satisfying the conditions described in [CWE-290].

Attack Vector

The attack is network-reachable and requires no privileges. An attacker first obtains a valid OCSESSID value from the target OpenCart instance. The attacker then forces this value into the victim's browser through cross-site scripting on a related domain, a man-in-the-middle injection over unencrypted channels, or a crafted link that sets the cookie via subdomain abuse. When the victim authenticates to OpenCart, the attacker reuses the same OCSESSID to issue requests as the authenticated user. Public exploitation details are documented in Exploit-DB #50555 and the VulnCheck Advisory.

Detection Methods for CVE-2021-47923

Indicators of Compromise

  • Multiple distinct source IP addresses or User-Agent strings reusing the same OCSESSID cookie value within a short time window.
  • OCSESSID values appearing in HTTP request logs before any corresponding Set-Cookie response from the server.
  • Authenticated actions such as address changes, order placements, or profile edits originating from a session that was previously unauthenticated under the same identifier.

Detection Strategies

  • Inspect web server and reverse proxy logs for OCSESSID cookies that persist unchanged across login transitions for the same user account.
  • Correlate authentication events with session token rotation. Flag accounts where the session identifier does not change at login.
  • Deploy web application firewall rules that detect injection of OCSESSID through URL parameters or referrer-based cookie planting.

Monitoring Recommendations

  • Enable verbose access logging on the OpenCart frontend and admin endpoints, capturing full cookie headers for forensic review.
  • Alert on concurrent active sessions sharing identical OCSESSID values from geographically distant source IPs.
  • Monitor administrative account activity for session identifiers that predate the login event timestamp.

How to Mitigate CVE-2021-47923

Immediate Actions Required

  • Upgrade OpenCart to a release later than 3.0.3.8 that addresses session handling, or apply community patches that force session_regenerate_id() on login.
  • Invalidate all existing customer and administrator sessions and require re-authentication.
  • Enforce the HttpOnly, Secure, and SameSite=Lax attributes on the OCSESSID cookie.

Patch Information

No vendor advisory URL is listed in the enriched data. Administrators should consult the OpenCart Official Site for the latest release notes and verify that session identifiers are regenerated during login. Reference exploitation and remediation context is available in the VulnCheck Advisory.

Workarounds

  • Modify the authentication controller to call PHP's session_regenerate_id(true) immediately after a successful customer or admin login.
  • Reject inbound OCSESSID cookies that do not match a server-generated identifier already tracked in the session store.
  • Serve OpenCart exclusively over HTTPS and enable HTTP Strict Transport Security to prevent cookie injection over plaintext channels.
bash
# Configuration example: enforce secure cookie attributes in php.ini
session.cookie_httponly = 1
session.cookie_secure = 1
session.cookie_samesite = "Lax"
session.use_strict_mode = 1
session.use_only_cookies = 1

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOpencart

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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
  • AvailabilityHigh
  • CWE References
  • CWE-290
  • Technical References
  • Exploit-DB #50555

  • OpenCart Official Site

  • VulnCheck Advisory: OpenCart Session Fixation
  • Related CVEs
  • CVE-2021-47928: Opencart TMD Vendor System SQLi Flaw

  • CVE-2021-47946: OpenCart CSRF Vulnerability

  • CVE-2021-47953: OpenCart 3.0.3.7 CSRF Vulnerability

  • CVE-2025-0579: OpenCart Shiprocket Module SQLi Vulnerability
Default Legacy - Prefooter | 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