CVE-2025-6417

6.3 MEDIUM

📋 TL;DR

This CVE describes a critical SQL injection vulnerability in PHPGurukul Art Gallery Management System 1.1. Attackers can exploit the 'awarddetails' parameter in the /admin/add-artist.php file to execute arbitrary SQL commands remotely. Organizations using this specific version of the software are affected.

💻 Affected Systems

Products:
  • PHPGurukul Art Gallery Management System
Versions: 1.1
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the /admin/add-artist.php file to be accessible, which is part of the default installation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or complete system takeover via SQL injection to RCE chaining.

🟠

Likely Case

Database information disclosure, authentication bypass, or data manipulation affecting gallery content and user data.

🟢

If Mitigated

Limited impact with proper input validation and WAF rules blocking SQL injection patterns.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires admin access to reach /admin/add-artist.php, but SQL injection itself is straightforward once authenticated.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://phpgurukul.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 proper input validation and parameterized queries to the awarddetails parameter in add-artist.php

Edit /admin/add-artist.php to use prepared statements with PDO or mysqli

Web Application Firewall Rules

all

Implement WAF rules to block SQL injection patterns targeting the awarddetails parameter

🧯 If You Can't Patch

  • Restrict access to /admin/ directory to trusted IP addresses only
  • Disable or remove the add-artist.php file if not needed

🔍 How to Verify

Check if Vulnerable:

Check if /admin/add-artist.php exists and contains unsanitized awarddetails parameter handling

Check Version:

Check version in system configuration files or admin panel

Verify Fix Applied:

Test SQL injection attempts against the awarddetails parameter to confirm they are blocked

📡 Detection & Monitoring

Log Indicators:

  • SQL error messages in web server logs
  • Multiple failed login attempts to admin panel followed by add-artist.php access

Network Indicators:

  • HTTP POST requests to /admin/add-artist.php with SQL keywords in parameters

SIEM Query:

source="web_server" AND (uri="/admin/add-artist.php" AND (param="awarddetails" AND (content="UNION" OR content="SELECT" OR content="INSERT")))

🔗 References

📤 Share & Export