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-2018-25341

CVE-2018-25341: Smartshop 1 SQL Injection Vulnerability

CVE-2018-25341 is a SQL injection flaw in Smartshop 1 allowing unauthenticated attackers to execute arbitrary SQL queries via the id parameter. This article covers technical details, exploitation risks, and mitigation.

Published: May 28, 2026

CVE-2018-25341 Overview

CVE-2018-25341 is a SQL injection vulnerability [CWE-89] affecting Smartshop 1, an open-source e-commerce application. Unauthenticated attackers can inject arbitrary SQL into the id parameter of product.php through GET requests. Union-based payloads allow extraction of sensitive database content, including usernames and database schema information.

The flaw requires no authentication, no user interaction, and is exploitable over the network. A public exploit has been documented in Exploit-DB entry 44823, providing a reproducible attack path against vulnerable deployments.

Critical Impact

Unauthenticated remote attackers can exfiltrate database contents, including credentials and schema metadata, by sending crafted GET requests to product.php.

Affected Products

  • Smartshop 1 (open-source e-commerce application by smakosh)
  • Deployments hosting product.php with the vulnerable id parameter
  • Forks and derivatives of the Smartshop codebase that retain the unsanitized query logic

Discovery Timeline

  • 2026-05-23 - CVE-2018-25341 published to NVD
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2018-25341

Vulnerability Analysis

The vulnerability resides in product.php, where the id GET parameter is concatenated directly into a SQL query without parameterization or input validation. Smartshop 1 passes attacker-controlled input to the database engine, allowing the query structure to be altered at runtime.

Because the application is a public-facing storefront, the vulnerable endpoint is reachable by any unauthenticated visitor. Attackers can append UNION SELECT statements to retrieve data from arbitrary tables, including user records. The exploitation pattern aligns with classic [CWE-89] SQL Injection.

Root Cause

The application fails to sanitize or parameterize user input before incorporating it into SQL statements. The PHP code constructs queries through string concatenation, treating the id value as trusted data. No prepared statements, type casting, or input whitelisting are applied before query execution.

Attack Vector

An attacker issues a GET request to product.php?id=<payload> containing a UNION-based SQL injection string. The payload terminates the original query and appends a secondary SELECT statement targeting tables such as users or system metadata views like information_schema. The database returns the injected result set within the product page response, enabling extraction of usernames, database names, and other stored content.

No credentials, session tokens, or prior reconnaissance are required. The attack succeeds against any reachable instance running the vulnerable codebase. Public proof-of-concept payloads are available in the Exploit-DB #44823 advisory.

Detection Methods for CVE-2018-25341

Indicators of Compromise

  • HTTP GET requests to product.php containing SQL keywords such as UNION, SELECT, INFORMATION_SCHEMA, or CONCAT in the id parameter
  • URL-encoded SQL metacharacters (%27, %20OR%20, --) appended to the id value
  • Anomalously long query strings targeting product.php from a single source IP
  • Database error messages or unexpected result fragments returned in product page responses

Detection Strategies

  • Inspect web server access logs for requests to product.php with suspicious id parameter content, focusing on SQL syntax patterns
  • Deploy web application firewall (WAF) rules targeting union-based SQL injection signatures
  • Monitor database query logs for UNION SELECT statements originating from the web application user
  • Correlate repeated 200-OK responses to product.php with abnormal response sizes that may indicate data exfiltration

Monitoring Recommendations

  • Enable verbose logging on the web tier and forward logs to a centralized analytics platform for query-string inspection
  • Alert on outbound database traffic spikes from the web server, which may indicate enumeration of information_schema
  • Track repeat offenders by source IP and apply rate limiting on the product.php endpoint

How to Mitigate CVE-2018-25341

Immediate Actions Required

  • Restrict public access to vulnerable Smartshop 1 instances pending remediation, or take affected deployments offline
  • Rewrite the product.php database access logic to use prepared statements with parameterized queries
  • Cast the id parameter to an integer using intval() or equivalent before incorporating it into any SQL statement
  • Rotate database credentials and audit user tables for evidence of unauthorized access

Patch Information

No official vendor patch is referenced in the CVE data. Smartshop 1 is distributed as an open-source project via the GitHub Smartshop Repository. Administrators must apply source-level fixes manually or migrate to a supported e-commerce platform. Review the VulnCheck Smartshop SQL Injection Advisory for additional remediation context.

Workarounds

  • Deploy a WAF in front of Smartshop with rules blocking SQL metacharacters in the id parameter
  • Enforce strict input validation at the application layer, rejecting any id value that is not a positive integer
  • Apply least-privilege principles to the database account used by Smartshop, removing access to sensitive tables and information_schema where feasible
bash
# Example WAF rule (ModSecurity) blocking SQLi in the id parameter
SecRule ARGS:id "@rx (?i)(union(\s|/\*.*\*/)+select|information_schema|--|;)" \
    "id:1002018,phase:2,deny,status:403,msg:'CVE-2018-25341 SQLi attempt on product.php id parameter'"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechSmartshop

  • 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
  • GitHub Smartshop Repository

  • Behance Smartshop E-commerce Design

  • Exploit-DB #44823

  • VulnCheck Smartshop SQL Injection Advisory
  • Related CVEs
  • CVE-2018-25340: Smartshop 1 SQL Injection Vulnerability

  • CVE-2018-25342: Smartshop 1 SQL Injection Vulnerability

  • CVE-2018-25343: Smartshop 1 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