CVE-2025-2644

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in PHPGurukul Art Gallery Management System 1.0 allows remote attackers to execute arbitrary SQL commands via the 'arttype' parameter in the /admin/add-art-product.php file. Attackers can potentially steal, modify, or delete database content, including sensitive user information. Organizations using this specific version of the software are affected.

💻 Affected Systems

Products:
  • PHPGurukul Art Gallery Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects the specific version mentioned; requires the vulnerable file to be accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, authentication bypass, and potential server takeover via SQL injection to command execution chaining.

🟠

Likely Case

Unauthorized access to sensitive data including user credentials, personal information, and administrative data stored in the database.

🟢

If Mitigated

Limited impact with proper input validation and database permissions preventing data exfiltration or modification.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub, making this easily exploitable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

Vendor Advisory: https://phpgurukul.com/

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement proper input validation and parameterized queries for the 'arttype' parameter in add-art-product.php

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block malicious requests

🧯 If You Can't Patch

  • Restrict access to /admin/add-art-product.php file using IP whitelisting or authentication
  • Implement database user with minimal privileges (read-only if possible) for the application

🔍 How to Verify

Check if Vulnerable:

Check if /admin/add-art-product.php exists and test the 'arttype' parameter with SQL injection payloads like ' OR '1'='1

Check Version:

Check the software version in the application interface or configuration files

Verify Fix Applied:

Test the 'arttype' parameter with SQL injection payloads to confirm they are properly sanitized or blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts from single IP
  • Requests to /admin/add-art-product.php with suspicious parameters

Network Indicators:

  • SQL keywords in HTTP POST parameters
  • Unusual database connection patterns
  • High volume of requests to admin endpoints

SIEM Query:

source="web_logs" AND uri="/admin/add-art-product.php" AND (param="arttype" AND value MATCHES "(?i)(union|select|insert|update|delete|drop|or|and|--|#|;)")

🔗 References

📤 Share & Export