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-2021-47956

CVE-2021-47956: PHPCRUD 1.0 SQL Injection Vulnerability

CVE-2021-47956 is an SQL injection flaw in EgavilanMedia PHPCRUD 1.0 that allows attackers to manipulate database queries through the firstname parameter. This article covers the technical details, impact, and mitigation.

Published: May 21, 2026

CVE-2021-47956 Overview

CVE-2021-47956 is an SQL injection vulnerability [CWE-89] in EgavilanMedia PHPCRUD 1.0. The flaw resides in the insert.php endpoint, which fails to sanitize the firstname parameter before incorporating it into a database query. Unauthenticated attackers can send crafted POST requests containing SQL payloads to manipulate the underlying query logic. Successful exploitation allows extraction of sensitive information from the backing MySQL database. The application is a public CRUD (Create, Read, Update, Delete) tutorial project distributed by EgavilanMedia, and no authentication is required to reach the vulnerable endpoint.

Critical Impact

Remote, unauthenticated attackers can exfiltrate database contents by injecting SQL through the firstname POST parameter of insert.php.

Affected Products

  • EgavilanMedia PHPCRUD 1.0
  • Deployments based on the EgavilanMedia CRUD with PHP, MySQL, Bootstrap, and Dompdf guide
  • Any forks reusing the unsanitized insert.php handler

Discovery Timeline

  • 2026-05-16 - CVE-2021-47956 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2021-47956

Vulnerability Analysis

The vulnerability is a classic SQL injection [CWE-89] in the data insertion routine of PHPCRUD 1.0. The insert.php script receives user-supplied POST values and concatenates them directly into a MySQL INSERT statement. Because the firstname parameter is neither escaped nor bound through prepared statements, attacker-controlled syntax becomes part of the executed query. An attacker can break out of the intended string context and append additional SQL clauses to read data from arbitrary tables.

The affected operation is reachable over the network without credentials or user interaction. The impact concentrates on confidentiality of database contents, including any records stored by the CRUD application or accessible to its MySQL user.

Root Cause

The root cause is direct string concatenation of HTTP request parameters into SQL statements. PHPCRUD 1.0 does not use mysqli prepared statements or PDO parameter binding, and it does not call sanitization functions such as mysqli_real_escape_string before query execution. The firstname field is treated as trusted input.

Attack Vector

An attacker sends a POST request to insert.php with a payload in the firstname field. Typical exploitation uses a UNION SELECT clause to append columns from sensitive tables, or boolean and time-based techniques to enumerate the schema. Because the endpoint is unauthenticated, the attack can be launched directly from the public network. Reference exploitation details are available in the Exploit-DB #49878 entry and the VulnCheck advisory for EgavilanMedia.

The vulnerability manifests in the unsanitized handling of the firstname POST parameter inside the SQL insert routine. See the linked advisories for full proof-of-concept payloads.

Detection Methods for CVE-2021-47956

Indicators of Compromise

  • POST requests to /insert.php containing SQL meta-characters such as ', --, UNION, SELECT, or SLEEP( in the firstname field.
  • Web server logs showing abnormally long firstname values or repeated submissions from the same source within seconds.
  • MySQL error log entries referencing syntax errors originating from the PHPCRUD insert query.
  • Outbound queries from the web host to attacker-controlled hosts following suspicious POST traffic.

Detection Strategies

  • Deploy web application firewall signatures that flag SQL keywords and tautologies in POST bodies sent to insert.php.
  • Enable MySQL general query logging on test environments to identify malformed INSERT statements driven by external input.
  • Correlate HTTP 500 responses from insert.php with the originating client IP to surface probing activity.

Monitoring Recommendations

  • Monitor authentication-free PHP endpoints exposed to the internet for anomalous request rates and payload sizes.
  • Alert on database user activity that performs SELECT operations against system tables such as information_schema.tables from the web application account.
  • Capture and retain raw HTTP request bodies for forensic review of suspected injection attempts.

How to Mitigate CVE-2021-47956

Immediate Actions Required

  • Remove or isolate any internet-facing deployment of EgavilanMedia PHPCRUD 1.0 until the code is remediated.
  • Replace string-concatenated SQL in insert.php with parameterized queries using mysqli prepared statements or PDO binding.
  • Restrict the database user assigned to the application to least-privilege rights on the specific CRUD table only.

Patch Information

No vendor patch has been published for EgavilanMedia PHPCRUD 1.0. The project is distributed as a tutorial codebase referenced on the EgavilanMedia CRUD guide. Operators must apply source-level fixes manually or migrate to a maintained framework. Refer to the VulnCheck advisory for EgavilanMedia for tracking status.

Workarounds

  • Place a web application firewall in front of the application with SQL injection rules enabled for the firstname parameter.
  • Enforce server-side input validation that rejects non-alphabetic characters in name fields before they reach the query layer.
  • Disable or remove the insert.php endpoint if the CRUD functionality is not required in production.
bash
# Example hardening: replace concatenation with a prepared statement in insert.php
# $stmt = $conn->prepare("INSERT INTO users (firstname, lastname) VALUES (?, ?)");
# $stmt->bind_param("ss", $_POST['firstname'], $_POST['lastname']);
# $stmt->execute();

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechEgavilanmedia

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • Egavilan Media Homepage

  • Egavilan Media Guide

  • Exploit-DB #49878

  • VulnCheck Advisory for EgavilanMedia
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
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