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-2024-1512

CVE-2024-1512: Masterstudy LMS SQLi Vulnerability

CVE-2024-1512 is a union-based SQL injection flaw in Masterstudy LMS WordPress plugin that allows unauthenticated attackers to extract sensitive database information. This article covers technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-1512 Overview

The MasterStudy LMS WordPress Plugin for Online Courses and Education contains a critical union-based SQL Injection vulnerability in the user parameter of the /lms/stm-lms/order/items REST route. This vulnerability affects all versions up to and including 3.2.5 and stems from insufficient escaping of user-supplied input combined with inadequate preparation of SQL queries. Unauthenticated attackers can exploit this flaw to append malicious SQL queries to existing database queries, enabling extraction of sensitive information from the WordPress database.

Critical Impact

Unauthenticated attackers can extract sensitive data including user credentials, payment information, course content, and other confidential data from the WordPress database without any authentication requirements.

Affected Products

  • MasterStudy LMS WordPress Plugin versions up to and including 3.2.5
  • WordPress installations using the vulnerable MasterStudy LMS plugin
  • stylemixthemes masterstudy_lms

Discovery Timeline

  • 2024-02-17 - CVE-2024-1512 published to NVD
  • 2024-12-18 - Last updated in NVD database

Technical Details for CVE-2024-1512

Vulnerability Analysis

This SQL Injection vulnerability exists within the StmStatistics.php class file, specifically in the handling of the user parameter within the REST API endpoint /lms/stm-lms/order/items. The vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), which represents one of the most dangerous web application security flaws.

The flaw allows unauthenticated attackers to inject arbitrary SQL commands through the REST API, bypassing authentication entirely. Once exploited, attackers can perform UNION-based SQL injection attacks to combine results from multiple database tables, effectively extracting any data stored within the WordPress database including user credentials, course information, payment details, and site configuration data.

Root Cause

The root cause of this vulnerability lies in two fundamental security failures within the plugin's codebase:

  1. Insufficient Input Escaping: The user parameter passed through the REST route is not properly sanitized or escaped before being incorporated into SQL queries. This allows special SQL characters and commands to pass through unfiltered.

  2. Lack of Prepared Statements: The existing SQL query does not utilize WordPress's $wpdb->prepare() function or equivalent parameterized query mechanisms, which would otherwise prevent SQL injection by separating code from data.

The combination of these issues creates a direct path for attackers to manipulate database queries through the publicly accessible REST API endpoint.

Attack Vector

The attack vector is network-based and requires no authentication, making it particularly dangerous for internet-facing WordPress installations. An attacker can craft malicious HTTP requests to the vulnerable REST endpoint, injecting SQL payloads through the user parameter.

The UNION-based injection technique allows attackers to append additional SELECT statements to the original query, retrieving data from arbitrary database tables. This method is effective because the injected query results are returned within the normal API response, providing direct data exfiltration capabilities.

Attack prerequisites include:

  • Network access to the WordPress installation
  • Knowledge of the vulnerable endpoint path
  • Basic SQL injection skills to craft UNION-based payloads

No special privileges, user interaction, or specific system conditions are required for successful exploitation.

Detection Methods for CVE-2024-1512

Indicators of Compromise

  • Unusual or malformed requests to the /lms/stm-lms/order/items REST endpoint containing SQL syntax
  • Database query logs showing UNION SELECT statements originating from the REST API
  • Unexpected data access patterns or bulk data retrieval through the LMS plugin endpoints
  • Web application firewall alerts for SQL injection patterns targeting WordPress REST routes

Detection Strategies

  • Deploy web application firewall (WAF) rules to detect and block SQL injection patterns in the user parameter
  • Monitor WordPress REST API access logs for suspicious requests to /lms/stm-lms/order/items
  • Implement database activity monitoring to identify anomalous query patterns including UNION operations
  • Configure intrusion detection systems to alert on common SQL injection payloads in HTTP traffic

Monitoring Recommendations

  • Enable verbose logging for WordPress REST API requests and review for injection attempts
  • Set up automated alerts for failed or unusual database queries originating from the LMS plugin
  • Monitor outbound network traffic for potential data exfiltration following exploitation
  • Regularly audit access to sensitive database tables containing user and payment information

How to Mitigate CVE-2024-1512

Immediate Actions Required

  • Update MasterStudy LMS WordPress Plugin to version 3.2.6 or later immediately
  • If immediate patching is not possible, temporarily disable the MasterStudy LMS plugin
  • Implement WAF rules to block SQL injection attempts targeting the vulnerable endpoint
  • Review database access logs for signs of prior exploitation

Patch Information

StylemixThemes has released a security update addressing this SQL Injection vulnerability. The fix is documented in the WordPress Plugin Changeset 3036794, which implements proper input sanitization and prepared statements for the affected query.

Organizations should update to version 3.2.6 or later through the WordPress plugin management interface. For detailed vulnerability information, refer to the Wordfence Vulnerability Report.

Workarounds

  • Restrict access to the WordPress REST API at the web server level for untrusted networks
  • Implement a web application firewall with SQL injection detection rules targeting the /lms/stm-lms/order/items endpoint
  • Use WordPress security plugins to add additional input validation layers
  • Consider implementing IP-based access controls for REST API endpoints if LMS functionality is only needed internally
bash
# Example Apache .htaccess rule to block access to vulnerable endpoint
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/wp-json/lms/stm-lms/order/items [NC]
    RewriteCond %{QUERY_STRING} user= [NC]
    RewriteRule .* - [F,L]
</IfModule>

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechStylemixthemes Masterstudy Lms

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability93.56%

  • 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-89
  • Technical References
  • WordPress Change Log Entry
  • Vendor Resources
  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2024-2411: MasterStudy LMS RCE Vulnerability

  • CVE-2024-2409: MasterStudy LMS Privilege Escalation Flaw

  • CVE-2024-37094: Masterstudy LMS Auth Bypass Vulnerability

  • CVE-2024-3136: Masterstudy LMS RCE 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