CVE-2023-33677

7.5 HIGH

📋 TL;DR

CVE-2023-33677 allows unauthenticated attackers to execute arbitrary SQL queries through the '?page=items/view&id=*' parameter in Sourcecodester Lost and Found Information System Version 1.0. This can lead to data theft, modification, or deletion. All users running this specific version are affected.

💻 Affected Systems

Products:
  • Sourcecodester Lost and Found Information System
Versions: Version 1.0
Operating Systems: Any OS running PHP/MySQL web server
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in default installation. Requires web server with PHP and MySQL/MariaDB.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data exfiltration, data destruction, or remote code execution if database functions allow it.

🟠

Likely Case

Unauthorized access to sensitive lost-and-found data, potential credential theft from database, and data manipulation.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only read access to non-sensitive data.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Simple SQL injection via URL parameter. Public proof-of-concept available on GitHub.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: http://wwwsourcecodestercom.com

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Input Validation Filter

all

Add parameter validation to only accept numeric IDs

Modify items/view.php to validate id parameter: if(!is_numeric($_GET['id'])) { die('Invalid input'); }

Web Application Firewall Rule

all

Block SQL injection patterns in the id parameter

WAF rule: deny requests with SQL keywords in id parameter

🧯 If You Can't Patch

  • Implement network segmentation to isolate the system from untrusted networks
  • Add authentication requirement for the items/view endpoint

🔍 How to Verify

Check if Vulnerable:

Test URL: http://target/?page=items/view&id=1' OR '1'='1

Check Version:

Check system version in admin panel or readme files

Verify Fix Applied:

Test with same payload - should return error or no data

📡 Detection & Monitoring

Log Indicators:

  • Multiple requests with SQL keywords in id parameter
  • Unusual database error messages in logs

Network Indicators:

  • HTTP requests containing SQL injection patterns in URL parameters

SIEM Query:

web.url:*page=items/view* AND (web.url:*OR* OR web.url:*UNION* OR web.url:*SELECT*)

🔗 References

📤 Share & Export