CVE-2025-31531

9.3 CRITICAL

📋 TL;DR

This SQL injection vulnerability in the History Log by click5 WordPress plugin allows attackers to execute arbitrary SQL commands on the database. It affects all WordPress sites running the plugin version 1.0.13 or earlier. Successful exploitation could lead to data theft, modification, or deletion.

💻 Affected Systems

Products:
  • History Log by click5 WordPress plugin
Versions: 1.0.13 and earlier
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all WordPress installations with vulnerable plugin versions installed and activated.

⚠️ 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 including sensitive data exfiltration, privilege escalation, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized access to plugin-related database tables, potentially exposing user activity logs and other stored data.

🟢

If Mitigated

Limited impact with proper input validation and database user privilege restrictions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

SQL injection vulnerabilities in WordPress plugins are frequently exploited in the wild. The CVSS score of 9.3 indicates high exploitability.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.14 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/history-log-by-click5/vulnerability/wordpress-history-log-by-click5-plugin-1-0-13-sql-injection-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Navigate to Plugins → Installed Plugins
3. Find 'History Log by click5'
4. Click 'Update Now' if available
5. Alternatively, download version 1.0.14+ from WordPress repository
6. Deactivate old plugin, upload new version, activate

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily deactivate the History Log by click5 plugin until patched

wp plugin deactivate history-log-by-click5

Web Application Firewall rules

all

Implement WAF rules to block SQL injection patterns targeting the plugin

🧯 If You Can't Patch

  • Implement strict input validation and parameterized queries at application level
  • Restrict database user permissions to minimum required for plugin functionality

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → History Log by click5 → Version. If version is 1.0.13 or earlier, you are vulnerable.

Check Version:

wp plugin get history-log-by-click5 --field=version

Verify Fix Applied:

Verify plugin version is 1.0.14 or later in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts or unusual plugin activity in WordPress logs
  • Unexpected database errors

Network Indicators:

  • HTTP requests with SQL injection payloads targeting plugin endpoints
  • Unusual outbound database connections

SIEM Query:

source="wordpress.log" AND "history-log-by-click5" AND (sql OR union OR select OR insert OR delete)

🔗 References

📤 Share & Export