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-2025-6311

CVE-2025-6311: Sales And Inventory System SQLi Flaw

CVE-2025-6311 is a critical SQL injection vulnerability in Campcodes Sales And Inventory System 1.0 affecting account_add.php. Attackers can exploit this remotely to manipulate database queries. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 15, 2026

CVE-2025-6311 Overview

CVE-2025-6311 is a SQL injection vulnerability in Campcodes Sales and Inventory System 1.0. The flaw resides in the /pages/account_add.php script, where the id and amount parameters are passed to the backend database without proper sanitization. Remote attackers can manipulate these arguments to inject arbitrary SQL statements. The exploit details have been publicly disclosed, increasing the likelihood of opportunistic attacks against exposed instances. The vulnerability is tracked under CWE-89 (SQL Injection) and CWE-74 (Improper Neutralization of Special Elements in Output).

Critical Impact

Unauthenticated remote attackers can inject SQL queries through the id and amount parameters of account_add.php, exposing database confidentiality, integrity, and availability.

Affected Products

  • Campcodes Sales and Inventory System 1.0
  • Vulnerable file: /pages/account_add.php
  • Vulnerable parameters: id, amount

Discovery Timeline

  • 2025-06-20 - CVE-2025-6311 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2025-6311

Vulnerability Analysis

The vulnerability stems from unsanitized handling of user-controlled input in the account_add.php endpoint of Campcodes Sales and Inventory System 1.0. The id and amount request parameters are concatenated directly into SQL statements executed against the backend database. Attackers can append SQL syntax to these parameters to alter query logic. No authentication is required to reach the vulnerable endpoint, and exploitation can be performed remotely over the network. Public disclosure of the exploit details on GitHub and VulDB raises the probability of automated scanning and exploitation.

Root Cause

The root cause is improper neutralization of special characters in SQL commands, classified as [CWE-89]. The application does not use parameterized queries or prepared statements for the id and amount arguments. Input validation routines are either absent or insufficient to neutralize SQL metacharacters such as single quotes, semicolons, and comment sequences.

Attack Vector

An attacker sends a crafted HTTP request to /pages/account_add.php with malicious payloads in the id or amount parameter. The injected SQL executes within the database session used by the application. Depending on database privileges, an attacker can read or modify records, dump credentials, or attempt secondary code execution through database-specific functionality. The attack requires no privileges and no user interaction.

No verified proof-of-concept code is published in trusted advisory sources. Refer to the GitHub Issue Discussion and the VulDB entry #313311 for additional technical context.

Detection Methods for CVE-2025-6311

Indicators of Compromise

  • HTTP requests targeting /pages/account_add.php containing SQL metacharacters such as ', --, UNION, SELECT, or OR 1=1 in the id or amount parameters.
  • Unexpected database error messages or HTTP 500 responses originating from account_add.php.
  • Outbound database queries from the application server that diverge from established baselines, including large SELECT statements or INFORMATION_SCHEMA reads.
  • Sudden creation, modification, or deletion of records in the account or inventory tables without corresponding legitimate user activity.

Detection Strategies

  • Deploy web application firewall (WAF) rules that inspect query string and POST body parameters submitted to account_add.php for SQL injection patterns.
  • Enable database query logging and alert on parameter values containing SQL syntax originating from web-tier service accounts.
  • Correlate web server access logs with database audit logs to surface anomalous query patterns tied to specific source IPs.

Monitoring Recommendations

  • Monitor authentication and authorization tables for unauthorized inserts or privilege modifications.
  • Track repeated 4xx and 5xx responses from account_add.php that may indicate injection probing.
  • Alert on outbound network connections from the database host that do not match expected administrative traffic.

How to Mitigate CVE-2025-6311

Immediate Actions Required

  • Restrict network access to the Campcodes Sales and Inventory System to trusted internal networks or VPN users until a patch is applied.
  • Deploy WAF signatures that block SQL injection payloads targeting the id and amount parameters of /pages/account_add.php.
  • Review database accounts used by the application and revoke unnecessary privileges such as FILE, SUPER, or schema-level write access where not required.
  • Audit recent web server and database logs for evidence of exploitation attempts against the vulnerable endpoint.

Patch Information

No vendor-supplied patch is referenced in the NVD entry at the time of publication. Administrators should monitor the Campcodes website for security updates and replace direct query construction in account_add.php with parameterized statements. Until a vendor patch is available, apply compensating controls and consider isolating or decommissioning the affected application.

Workarounds

  • Modify account_add.php to use prepared statements with bound parameters for id and amount instead of string concatenation.
  • Enforce strict server-side input validation that rejects non-numeric values where numeric IDs and amounts are expected.
  • Place the application behind a reverse proxy that performs request normalization and rate limiting on the /pages/account_add.php endpoint.
  • Run the database service under a least-privilege account that cannot read system tables or write outside the application schema.
bash
# Example WAF rule (ModSecurity) blocking SQLi patterns on the affected endpoint
SecRule REQUEST_URI "@beginsWith /pages/account_add.php" \
    "phase:2,deny,status:403,id:1006311,msg:'CVE-2025-6311 SQLi attempt',\
    chain"
    SecRule ARGS:id|ARGS:amount "@rx (?i)(union(\s)+select|or\s+1=1|--|;|/\*|\bsleep\s*\()" \
        "t:none,t:urlDecodeUni"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechCampcodes Sales And Inventory System

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/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-74

  • CWE-89
  • Technical References
  • GitHub Issue Discussion

  • VulDB CTI ID #313311

  • VulDB #313311

  • VulDB Submit ID #595922

  • VulDB Submit ID #595926

  • Camp Codes Security Blog
  • Related CVEs
  • CVE-2025-6313: Sales And Inventory System SQLi Flaw

  • CVE-2025-7933: Sales And Inventory System SQLi Flaw

  • CVE-2025-7535: Sales And Inventory System SQLi Flaw

  • CVE-2025-7536: Campcodes Sales & Inventory SQLi Flaw
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