CVE-2025-55849

8.4 HIGH

📋 TL;DR

WeiPHP v5.0 and earlier contains a SQL injection vulnerability in the SucaiController.class.php file via the cancelTemplatee parameter. This allows attackers to execute arbitrary SQL commands on the database. All users running vulnerable versions are affected.

💻 Affected Systems

Products:
  • WeiPHP
Versions: v5.0 and earlier
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the SucaiController.class.php file specifically via cancelTemplatee parameter.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or full system takeover via subsequent attacks.

🟠

Likely Case

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

🟢

If Mitigated

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

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

SQL injection via cancelTemplatee parameter requires some authentication but is straightforward to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://gitee.com/zyun4/wei-php5.0/issues/ICWO0Y

Restart Required: No

Instructions:

1. Check for official patch from WeiPHP developers. 2. If no patch, implement workarounds. 3. Consider upgrading to a newer, supported version if available.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add strict input validation for the cancelTemplatee parameter to reject malicious SQL characters.

Edit SucaiController.class.php to validate/sanitize cancelTemplatee input

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection attempts targeting this endpoint.

Configure WAF to block SQL injection patterns for /SucaiController/cancelTemplatee

🧯 If You Can't Patch

  • Restrict network access to the WeiPHP application to trusted IPs only
  • Implement database user with minimal necessary permissions

🔍 How to Verify

Check if Vulnerable:

Check if running WeiPHP v5.0 or earlier and examine SucaiController.class.php for vulnerable cancelTemplatee parameter handling.

Check Version:

Check WeiPHP version in configuration files or admin panel

Verify Fix Applied:

Test the cancelTemplatee endpoint with SQL injection payloads to ensure they are blocked or sanitized.

📡 Detection & Monitoring

Log Indicators:

  • SQL error messages in application logs
  • Unusual database queries from web application

Network Indicators:

  • HTTP requests to /SucaiController/cancelTemplatee with SQL syntax in parameters

SIEM Query:

web.url:*cancelTemplatee* AND (web.param:*UNION* OR web.param:*SELECT* OR web.param:*OR*1=1*)

🔗 References

📤 Share & Export