CVE-2025-13236

6.3 MEDIUM

📋 TL;DR

This SQL injection vulnerability in itsourcecode Inventory Management System 1.0 allows attackers to manipulate database queries through the ID parameter in the /admin/products/index.php?view=edit endpoint. Organizations using this specific inventory management system are affected, particularly those with internet-facing installations.

💻 Affected Systems

Products:
  • itsourcecode Inventory Management System
Versions: 1.0
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the /admin/products/index.php?view=edit endpoint to be accessible. Default installations are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or full system takeover via SQL injection to remote code execution.

🟠

Likely Case

Unauthorized data access, extraction of sensitive information like user credentials, product data, or financial records from the database.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or partial data exposure.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires access to the admin interface. The vulnerability is in a parameter that can be easily manipulated in HTTP requests.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://itsourcecode.com/

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a newer version if available, or implement workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameter validation to ensure ID parameter contains only numeric values before processing SQL queries.

Modify /admin/products/index.php to add: if(!is_numeric($_GET['ID'])) { die('Invalid input'); }

Web Application Firewall (WAF) Rules

all

Deploy WAF rules to block SQL injection patterns targeting the /admin/products/index.php endpoint.

🧯 If You Can't Patch

  • Restrict access to the /admin/ directory to trusted IP addresses only using .htaccess or firewall rules.
  • Disable or remove the vulnerable endpoint if not required for business operations.

🔍 How to Verify

Check if Vulnerable:

Test the /admin/products/index.php?view=edit endpoint with SQL injection payloads like: ID=1' OR '1'='1

Check Version:

Check the system version in the admin panel or configuration files, typically in a version.txt or config.php file.

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return appropriate error messages or are blocked.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin interface
  • HTTP requests with SQL keywords in ID parameter

Network Indicators:

  • HTTP requests to /admin/products/index.php with suspicious ID parameters containing SQL syntax

SIEM Query:

source="web_logs" AND uri="/admin/products/index.php" AND query_string="*ID=*" AND (query_string="*'*" OR query_string="*OR*" OR query_string="*UNION*" OR query_string="*SELECT*")

🔗 References

📤 Share & Export