CVE-2023-30203

9.8 CRITICAL

📋 TL;DR

Judging Management System v1.0 contains a SQL injection vulnerability in the result_sheet.php file via the event_id parameter. This allows attackers to execute arbitrary SQL commands on the database. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • Judging Management System
Versions: v1.0
Operating Systems: Any OS running PHP and MySQL/MariaDB
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the specific version only; requires PHP environment with database backend.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, authentication bypass, or remote code execution via database functions.

🟠

Likely Case

Unauthorized data access, extraction of sensitive information, and potential privilege escalation.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, though SQL injection attempts would still be logged.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Simple parameter manipulation; exploit details available in public GitHub repository.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None found

Restart Required: No

Instructions:

No official patch available. Implement input validation and parameterized queries manually.

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to sanitize event_id parameter to accept only numeric values

Modify /php-jms/result_sheet.php to validate $_GET['event_id'] with is_numeric() or filter_var()

Web Application Firewall Rule

all

Block SQL injection patterns in the event_id parameter

Add WAF rule: deny requests with SQL keywords in event_id parameter

🧯 If You Can't Patch

  • Isolate the system behind a reverse proxy with strict input validation
  • Implement network segmentation to limit database access from the application server

🔍 How to Verify

Check if Vulnerable:

Test with payload: /php-jms/result_sheet.php?event_id=1' OR '1'='1

Check Version:

Check application version in source code or documentation

Verify Fix Applied:

Test with same payload; should return error or no data instead of executing SQL

📡 Detection & Monitoring

Log Indicators:

  • SQL syntax errors in PHP logs
  • Multiple requests with SQL keywords in event_id parameter

Network Indicators:

  • HTTP requests containing SQL injection patterns in URL parameters

SIEM Query:

source="web_logs" AND (event_id="*' OR*" OR event_id="*UNION*" OR event_id="*SELECT*" OR event_id="*--*")

🔗 References

📤 Share & Export