CVE-2024-30983

7.3 HIGH

📋 TL;DR

This SQL injection vulnerability in phpgurukul Cyber Cafe Management System allows attackers to execute arbitrary SQL commands via the compname parameter in the /edit-computer-detail.php file. Attackers can potentially access, modify, or delete database contents, including sensitive customer and system data. Organizations using this specific software version are affected.

💻 Affected Systems

Products:
  • phpgurukul Cyber Cafe Management System Using PHP & MySQL
Versions: 1.0
Operating Systems: Any OS running PHP and MySQL
Default Config Vulnerable: ⚠️ Yes
Notes: Affects installations with the vulnerable /edit-computer-detail.php file accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, system takeover, or destruction of all cyber cafe management data including customer records, billing information, and system configurations.

🟠

Likely Case

Unauthorized data access and extraction of sensitive information such as customer details, login credentials, and financial records from the database.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries preventing successful exploitation.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

SQL injection via GET parameter requires minimal technical skill to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch available. Implement workarounds or migrate to alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add server-side validation to sanitize the compname parameter before processing.

Modify /edit-computer-detail.php to use prepared statements with parameterized queries

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting the compname parameter.

Add WAF rule: deny requests with SQL keywords in compname parameter

🧯 If You Can't Patch

  • Restrict access to /edit-computer-detail.php file using IP whitelisting or authentication
  • Disable or remove the vulnerable file if functionality is not required

🔍 How to Verify

Check if Vulnerable:

Test the compname parameter with SQL injection payloads like: compname=' OR '1'='1

Check Version:

Check software version in admin panel or configuration files

Verify Fix Applied:

Attempt SQL injection tests after implementing parameterized queries and verify they fail.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in web server logs
  • Multiple requests to /edit-computer-detail.php with SQL keywords in parameters

Network Indicators:

  • HTTP requests containing SQL injection patterns in GET parameters

SIEM Query:

source="web_server" AND uri="/edit-computer-detail.php" AND (param="compname" AND value CONTAINS "UNION" OR value CONTAINS "SELECT" OR value CONTAINS "OR '1'='1")

🔗 References

📤 Share & Export