CVE-2025-8250

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Exam Form Submission 1.0 allows attackers to manipulate database queries through the 'credits' parameter in /admin/update_s4.php. Attackers can execute arbitrary SQL commands remotely, potentially compromising the entire database. All users running the vulnerable software are affected.

💻 Affected Systems

Products:
  • code-projects Exam Form Submission
Versions: 1.0
Operating Systems: All platforms running the vulnerable PHP application
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation. The /admin/update_s4.php file must be accessible for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, authentication bypass, and potential server takeover via SQL injection to RCE chaining.

🟠

Likely Case

Database information disclosure, data manipulation, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries in place.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and public exploit details are available.
🏢 Internal Only: MEDIUM - Still significant risk from internal threats or compromised internal systems.

🎯 Exploit Status

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

Exploit details are publicly disclosed. Attack requires access to the admin interface but SQL injection is straightforward once authenticated.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Consider applying manual code fixes or migrating to alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add proper input validation and parameterized queries to the update_s4.php file

Edit /admin/update_s4.php to replace raw SQL with prepared statements

Access Restriction

all

Restrict access to the vulnerable admin endpoint

Add authentication checks or IP whitelisting to /admin/update_s4.php

🧯 If You Can't Patch

  • Implement a Web Application Firewall (WAF) with SQL injection rules
  • Isolate the vulnerable system behind additional network segmentation

🔍 How to Verify

Check if Vulnerable:

Check if /admin/update_s4.php exists and contains unsanitized 'credits' parameter usage in SQL queries

Check Version:

Check application version in configuration files or about pages

Verify Fix Applied:

Test the 'credits' parameter with SQL injection payloads to confirm proper input validation

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs
  • Multiple failed login attempts to admin interface
  • Unexpected database queries from web server

Network Indicators:

  • HTTP POST requests to /admin/update_s4.php with SQL injection patterns
  • Unusual database traffic from web server

SIEM Query:

web.url:*update_s4.php AND (web.query:*UNION* OR web.query:*SELECT* OR web.query:*INSERT*)

🔗 References

📤 Share & Export