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-47946

CVE-2021-47946: OpenCart CSRF Vulnerability

CVE-2021-47946 is a CSRF vulnerability in OpenCart 3.0.3.6 affecting the /account/edit endpoint. Attackers can modify victim account details and gain unauthorized access. This article covers technical details, impact, and mitigation.

Published: May 18, 2026

CVE-2021-47946 Overview

CVE-2021-47946 is a Cross-Site Request Forgery (CSRF) vulnerability [CWE-352] affecting OpenCart 3.0.3.6. The flaw resides in the /account/edit endpoint, which fails to validate request origin or enforce anti-CSRF tokens. An attacker who lures an authenticated victim to a malicious page can silently modify the victim's account details, including the registered email address. Once the email is changed, the attacker triggers the password reset workflow to receive a reset link and seize control of the account. The vulnerability requires no authentication on the attacker side and no privileged access, only social engineering to coerce the victim into visiting the attacker-controlled page.

Critical Impact

Unauthenticated attackers can hijack OpenCart user accounts by tricking authenticated victims into visiting a malicious page, leading to full account takeover via the password reset flow.

Affected Products

  • OpenCart 3.0.3.6
  • OpenCart 3.x branch (account edit endpoint)
  • Self-hosted OpenCart storefronts exposing /account/edit

Discovery Timeline

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

Technical Details for CVE-2021-47946

Vulnerability Analysis

The vulnerability is a classic Cross-Site Request Forgery flaw in the OpenCart customer account module. The /account/edit endpoint accepts state-changing POST requests using the authenticated session cookie without verifying a CSRF token or checking the Origin or Referer headers. Because browsers automatically attach cookies to cross-origin requests, an attacker-controlled page can submit a forged form that updates the victim's profile fields. The attack chain pivots from profile modification to account takeover. By changing the victim's registered email address, the attacker decouples the account from the legitimate owner. The attacker then invokes the standard password reset workflow, which delivers the reset token to the now attacker-controlled email address.

Root Cause

The root cause is the absence of synchronizer tokens or SameSite cookie controls on sensitive account management endpoints. The application trusts session cookies as sole proof of intent, ignoring the OWASP recommendation to bind each state-changing request to a per-session anti-CSRF token.

Attack Vector

Exploitation requires the victim to be authenticated to the OpenCart storefront and to visit an attacker-controlled web page. The malicious page hosts an auto-submitting HTML form targeting /index.php?route=account/edit with attacker-chosen email and profile fields. Once submitted, the OpenCart session updates silently. The attacker then visits the password reset endpoint, enters the new email, and receives credentials for the hijacked account. Public exploit code is documented in Exploit-DB #49407 and the VulnCheck Advisory on OpenCart CSRF.

No verified code sample is reproduced here. Refer to the published advisories for the proof-of-concept HTML form structure.

Detection Methods for CVE-2021-47946

Indicators of Compromise

  • POST requests to /index.php?route=account/edit containing Referer headers pointing to external or unexpected origins.
  • Rapid sequence of account email changes followed by password reset requests for the same account.
  • Password reset emails delivered to addresses that differ from historical account email patterns.
  • Customer support tickets reporting lost access immediately after browsing unfamiliar links.

Detection Strategies

  • Inspect web server access logs for account/edit POST requests lacking a same-origin Referer or Origin header.
  • Correlate profile email changes with subsequent account/forgotten or account/reset activity within short time windows.
  • Deploy a Web Application Firewall (WAF) rule that blocks state-changing requests missing a valid CSRF token parameter.

Monitoring Recommendations

  • Alert on any account whose email attribute changes more than once within 24 hours.
  • Monitor outbound password reset email volume for unusual spikes against the OpenCart user base.
  • Log and review HTTP Referer distribution for all /account/* POST endpoints.

How to Mitigate CVE-2021-47946

Immediate Actions Required

  • Upgrade OpenCart to the latest 3.x or 4.x release that enforces CSRF tokens on account endpoints.
  • Force a password and email-confirmation reset for any account that changed its email address recently.
  • Deploy a WAF rule blocking POSTs to /index.php?route=account/edit without a same-origin Referer.

Patch Information

No specific vendor patch identifier is referenced in the available advisory data. Administrators should obtain the latest stable build from the OpenCart Downloads Page and review changelogs for CSRF token enforcement on customer account routes. Consult the VulnCheck Advisory on OpenCart CSRF for upgrade guidance.

Workarounds

  • Set the session cookie SameSite attribute to Lax or Strict to block cross-site cookie attachment on form submissions.
  • Implement a custom pre-controller hook that validates a per-session CSRF token on all account/* POST routes.
  • Require email-link confirmation before applying any change to a customer's registered email address.
  • Restrict the storefront's Content-Security-Policy to prevent embedding by untrusted origins.
bash
# Example: enforce SameSite cookies in PHP session configuration
# Add to php.ini or .htaccess for the OpenCart host
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/TechOpencart

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.04%

  • 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
  • Exploit-DB #49407

  • OpenCart Official Website

  • OpenCart Downloads Page

  • VulnCheck Advisory on OpenCart CSRF
  • Related CVEs
  • CVE-2021-47953: OpenCart 3.0.3.7 CSRF Vulnerability

  • CVE-2021-47928: Opencart TMD Vendor System SQLi Flaw

  • CVE-2021-47923: OpenCart Session Fixation 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