CVE-2025-15142

7.3 HIGH

📋 TL;DR

This CVE describes a SQL injection vulnerability in phpok3w's show.php file through manipulation of the ID parameter. Attackers can remotely exploit this to execute arbitrary SQL commands on the database. All installations using affected versions of phpok3w are vulnerable.

💻 Affected Systems

Products:
  • phpok3w
Versions: All versions up to commit 901d96a06809fb28b17f3a4362c59e70411c933c
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Rolling release model means no specific version numbers, only commit hash reference

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or full system takeover via SQL injection to RCE chain

🟠

Likely Case

Database information disclosure, data manipulation, or authentication bypass

🟢

If Mitigated

Limited impact with proper input validation and WAF protection

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available in the issue tracker

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Monitor project repository for updates.

🔧 Temporary Workarounds

Input Validation for ID Parameter

all

Add strict input validation to sanitize the ID parameter in show.php

Modify show.php to validate ID parameter as integer: if(!is_numeric($_GET['ID'])) { die('Invalid input'); }

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Add WAF rule: SecRule ARGS:ID "@rx (?i)(union|select|insert|update|delete|drop|create|alter|exec|xp_)" "id:1001,phase:2,deny,status:403,msg:'SQL Injection Attempt'"
Modify for your specific WAF platform

🧯 If You Can't Patch

  • Isolate the vulnerable system from internet access
  • Implement strict network segmentation and monitor for SQL injection attempts

🔍 How to Verify

Check if Vulnerable:

Check if your phpok3w installation uses commit hash earlier than 901d96a06809fb28b17f3a4362c59e70411c933c

Check Version:

git log --oneline -1

Verify Fix Applied:

Test ID parameter with SQL injection payloads like: show.php?ID=1' OR '1'='1

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple failed parameter validation attempts
  • Suspicious ID parameter values containing SQL keywords

Network Indicators:

  • HTTP requests with SQL injection patterns in ID parameter
  • Unusual database query patterns from web server

SIEM Query:

source="web_logs" AND ("union select" OR "' OR '1'='1" OR "sql injection" OR "show.php?ID=")

🔗 References

📤 Share & Export