CVE-2024-9788

4.7 MEDIUM

📋 TL;DR

This vulnerability allows remote attackers to execute SQL injection attacks via the 'id' parameter in the /admin/tag.php file in LyLme_spage 1.9.5. Attackers can potentially read, modify, or delete database content. All users running LyLme_spage 1.9.5 with the vulnerable file accessible are affected.

💻 Affected Systems

Products:
  • LyLme_spage
Versions: 1.9.5
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires /admin/tag.php to be accessible. May require authentication depending on admin access controls.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, or potential remote code execution if database functions allow it.

🟠

Likely Case

Unauthorized data access, data manipulation, or privilege escalation through database queries.

🟢

If Mitigated

Limited impact if proper input validation and parameterized queries are implemented.

🌐 Internet-Facing: HIGH - Attack can be initiated remotely and exploit is publicly disclosed.
🏢 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 disclosed publicly. SQL injection vulnerabilities are commonly weaponized.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Vendor did not respond to disclosure. Consider workarounds or alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement proper input validation and parameterized queries for the 'id' parameter in tag.php

Edit /admin/tag.php to use prepared statements with parameterized queries

Access Restriction

linux

Restrict access to /admin/tag.php file

Add .htaccess rules to restrict access or move file to protected directory

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block SQL injection patterns
  • Restrict network access to the application to trusted IPs only

🔍 How to Verify

Check if Vulnerable:

Check if running LyLme_spage 1.9.5 and /admin/tag.php exists and is accessible

Check Version:

Check application version in configuration files or admin panel

Verify Fix Applied:

Test SQL injection attempts against the /admin/tag.php?id= parameter

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple requests to /admin/tag.php with SQL-like parameters

Network Indicators:

  • HTTP requests containing SQL keywords (SELECT, UNION, etc.) in id parameter

SIEM Query:

http.url:"/admin/tag.php" AND http.param.id:("SELECT" OR "UNION" OR "OR 1=1")

🔗 References

📤 Share & Export