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

CVE-2024-8568: Mini-Tmall SQL Injection Vulnerability

CVE-2024-8568 is a critical SQL injection flaw in Mini-Tmall that allows remote attackers to manipulate database queries through the orderBy parameter. This article covers the technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-8568 Overview

CVE-2024-8568 is a SQL injection vulnerability affecting Mini-Tmall versions up to 20240901. The flaw resides in the rewardMapper.select function reached through the tmall/admin/order/1/1 endpoint. Attackers manipulate the orderBy argument to inject arbitrary SQL into backend database queries. The vulnerability is exploitable remotely and requires only low-privileged authentication. Public disclosure of the exploit has occurred, and the vendor did not respond to early outreach about the issue. This weakness is classified under [CWE-89] Improper Neutralization of Special Elements used in an SQL Command.

Critical Impact

Authenticated remote attackers can inject SQL through the orderBy parameter, exposing administrative order data and enabling tampering of backend records.

Affected Products

  • Mini-Tmall (project_team tmall_demo) versions through 20240901
  • Administrative endpoint tmall/admin/order/1/1
  • Java component OrderController calling rewardMapper.select

Discovery Timeline

  • 2024-09-08 - CVE-2024-8568 published to NVD
  • 2024-09-16 - Last updated in NVD database

Technical Details for CVE-2024-8568

Vulnerability Analysis

The vulnerability exists in the order administration component of Mini-Tmall, a Java-based e-commerce demonstration application. The OrderController handler delegates query construction to rewardMapper.select, where the orderBy request parameter is concatenated directly into a SQL statement. Because the parameter is not validated against an allowlist of column names and is not bound through a prepared statement, attackers control a portion of the SQL grammar. The endpoint accepts crafted query strings over HTTP and processes them server-side without sanitization. Detailed reproduction steps are documented in the Gitee SQL Injection Demo and VulDB entry #276798.

Root Cause

The root cause is unsafe dynamic SQL construction in MyBatis mapper code. The orderBy value is inserted using string substitution rather than parameter binding, so quoted strings and UNION clauses survive into the final query. ORDER BY clauses cannot use standard parameter placeholders, which often leads developers to bypass safe binding and reintroduce injection paths.

Attack Vector

An authenticated attacker with low-privileged access sends a crafted HTTP request to the order administration endpoint. The malicious orderBy payload alters the SQL query to extract data, bypass filters, or modify result ordering to leak information. No user interaction is required beyond submitting the request. The attack is fully remote over the network and requires no specialized tooling beyond a web client.

The vulnerability manifests when the orderBy query parameter flows from the HTTP request into the MyBatis mapper without sanitization. See the Gitee technical write-up for the annotated source code path.

Detection Methods for CVE-2024-8568

Indicators of Compromise

  • HTTP requests to tmall/admin/order/1/1 containing SQL keywords such as UNION, SELECT, SLEEP, or -- inside the orderBy parameter
  • Database error messages or unusually long response times tied to admin order queries
  • Unexpected outbound queries from the application database account during admin session activity

Detection Strategies

  • Inspect web server and application logs for orderBy values that contain SQL metacharacters or non-column tokens
  • Deploy a web application firewall (WAF) rule set with SQL injection signatures applied to the tmall/admin/order/* route
  • Enable database query logging and alert on ORDER BY clauses referencing functions like SLEEP, BENCHMARK, or subqueries

Monitoring Recommendations

  • Correlate authentication events with admin order endpoint access to spot low-privileged accounts probing the route
  • Baseline normal orderBy parameter values and alert on deviations from the expected column allowlist
  • Forward web and database telemetry to a centralized analytics platform for cross-source query injection hunting

How to Mitigate CVE-2024-8568

Immediate Actions Required

  • Restrict access to the tmall/admin/order/1/1 endpoint to trusted administrative networks only
  • Validate the orderBy parameter against a hard-coded allowlist of permitted column names before reaching the mapper
  • Audit existing admin accounts and rotate credentials given the low privilege requirement for exploitation

Patch Information

The vendor did not respond to disclosure outreach, and no official patch is referenced in the advisory. Operators should apply source-level fixes by replacing dynamic SQL concatenation in rewardMapper.select with parameterized queries or a strict column allowlist. Track the VulDB advisory #276798 for any subsequent vendor updates.

Workarounds

  • Place the application behind a WAF with SQL injection signatures enforced on all administrative endpoints
  • Apply input validation middleware that rejects orderBy values not matching ^[A-Za-z_][A-Za-z0-9_]*$
  • Limit database account permissions used by the application to read-only where feasible to reduce impact
  • Consider taking the demonstration application offline if it is not required for production use
bash
# Example nginx rule to block SQL metacharacters on the affected route
location /tmall/admin/order/ {
    if ($arg_orderBy ~* "[';()=]|--|union|select|sleep|benchmark") {
        return 403;
    }
    proxy_pass http://backend;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechProject Team

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-89
  • Technical References
  • Gitee SQL Injection Demo

  • VulDB CTI Insight #276798

  • VulDB #276798

  • VulDB Submission #401010
  • Related CVEs
  • CVE-2025-5132: Tmall Demo CSRF 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