CVE-2025-15011

7.3 HIGH

📋 TL;DR

This SQL injection vulnerability in Simple Stock System 1.0 allows remote attackers to execute arbitrary SQL commands via the 'uname' parameter in /logout.php. This could lead to unauthorized data access, modification, or deletion. All users running Simple Stock System 1.0 are affected.

💻 Affected Systems

Products:
  • Simple Stock System
Versions: 1.0
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of Simple Stock System 1.0 regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, and potential server takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized access to sensitive stock data, user credentials, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to non-critical data.

🌐 Internet-Facing: HIGH - Remote exploitation possible with public exploit available.
🏢 Internal Only: MEDIUM - Still vulnerable but attack surface reduced to internal network.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploit is publicly available and requires minimal technical skill to execute.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Consider migrating to alternative software or implementing workarounds.

🔧 Temporary Workarounds

Input Validation Filter

all

Add parameter validation to /logout.php to sanitize the 'uname' parameter

Edit /logout.php and add: $uname = mysqli_real_escape_string($connection, $_GET['uname']);

Web Application Firewall Rule

all

Block SQL injection patterns targeting /logout.php

WAF rule: deny requests to /logout.php containing SQL keywords in parameters

🧯 If You Can't Patch

  • Isolate the system behind a firewall with strict network access controls
  • Implement database-level protections: use least privilege accounts, enable audit logging

🔍 How to Verify

Check if Vulnerable:

Test /logout.php?uname=test' OR '1'='1 and observe if SQL error occurs or unexpected behavior

Check Version:

Check application files for version information or review installation documentation

Verify Fix Applied:

Test with same payload after applying workarounds - should return proper error or no SQL execution

📡 Detection & Monitoring

Log Indicators:

  • SQL syntax errors in application logs
  • Unusual database queries from web server IP
  • Multiple failed logout attempts with SQL-like parameters

Network Indicators:

  • HTTP requests to /logout.php containing SQL keywords (UNION, SELECT, etc.) in parameters
  • Abnormal database traffic patterns from web server

SIEM Query:

source="web_logs" AND uri="/logout.php" AND (param="*UNION*" OR param="*SELECT*" OR param="*OR '1'='1*")

🔗 References

📤 Share & Export