CVE-2025-13172

6.3 MEDIUM

📋 TL;DR

This CVE describes a SQL injection vulnerability in CodeAstro Gym Management System 1.0 that allows attackers to manipulate database queries through the ID parameter in /admin/view-member-report.php. Attackers can potentially access, modify, or delete sensitive data in the database. All installations of CodeAstro Gym Management System 1.0 with the vulnerable file are affected.

💻 Affected Systems

Products:
  • CodeAstro Gym Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation. Any system with the /admin/view-member-report.php file accessible is vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including theft of sensitive member data (personal information, payment details), administrative credential theft, and potential system takeover through privilege escalation.

🟠

Likely Case

Unauthorized access to member records and personal data, potential data exfiltration, and manipulation of gym management data.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or limited data exposure.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available. Attack requires access to the admin interface but not necessarily authentication if admin panel is exposed.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://codeastro.com/

Restart Required: No

Instructions:

1. Check vendor website for security updates
2. Apply any available patches
3. If no patch available, implement workarounds

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement proper input validation and parameterized queries for the ID parameter

Modify /admin/view-member-report.php to use prepared statements

Access Restriction

all

Restrict access to the admin interface using IP whitelisting or authentication

Add .htaccess rules or firewall rules to restrict /admin/ directory

🧯 If You Can't Patch

  • Implement a Web Application Firewall (WAF) with SQL injection rules
  • Isolate the system from the internet and restrict internal access

🔍 How to Verify

Check if Vulnerable:

Test the /admin/view-member-report.php endpoint with SQL injection payloads in the ID parameter

Check Version:

Check system documentation or configuration files for version information

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that parameterized queries are implemented

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries from web server
  • SQL error messages in web logs
  • Multiple failed login attempts to admin panel

Network Indicators:

  • Unusual traffic patterns to /admin/view-member-report.php
  • SQL injection patterns in HTTP requests

SIEM Query:

source="web_logs" AND (uri="/admin/view-member-report.php" AND (query CONTAINS "UNION" OR query CONTAINS "SELECT" OR query CONTAINS "--"))

🔗 References

📤 Share & Export