CVE-2024-49242

10.0 CRITICAL

📋 TL;DR

This vulnerability allows attackers to upload arbitrary files, including web shells, to WordPress servers running the Digital Lottery plugin. Attackers can gain full control of affected web servers. All WordPress sites using Digital Lottery plugin versions up to 3.0.5 are affected.

💻 Affected Systems

Products:
  • WordPress Digital Lottery plugin
Versions: n/a through 3.0.5
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Digital Lottery plugin enabled

⚠️ 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 server compromise leading to data theft, ransomware deployment, or use as attack platform

🟠

Likely Case

Web shell installation enabling backdoor access, data exfiltration, and lateral movement

🟢

If Mitigated

File uploads blocked or sanitized, preventing malicious file execution

🌐 Internet-Facing: HIGH - Web applications are directly accessible from internet
🏢 Internal Only: MEDIUM - Internal applications still vulnerable to insider threats or compromised accounts

🎯 Exploit Status

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

Simple HTTP POST request with malicious file upload, no authentication required

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.0.6 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/digital-lottery/wordpress-digital-lottery-plugin-3-0-5-arbitrary-file-upload-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Navigate to Plugins > Installed Plugins
3. Find Digital Lottery plugin
4. Click 'Update Now' if update available
5. If no update available, deactivate and remove plugin immediately

🔧 Temporary Workarounds

Web Application Firewall Rule

all

Block file uploads to Digital Lottery plugin endpoints

WAF specific - configure to block POST requests containing file uploads to /wp-content/plugins/digital-lottery/

File System Permissions

linux

Restrict write permissions to plugin upload directories

chmod 755 /var/www/html/wp-content/plugins/digital-lottery/
chmod 644 /var/www/html/wp-content/plugins/digital-lottery/*

🧯 If You Can't Patch

  • Immediately disable and remove the Digital Lottery plugin from all WordPress installations
  • Implement strict file upload validation at web server level using mod_security or equivalent

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Digital Lottery version. If version is 3.0.5 or earlier, system is vulnerable.

Check Version:

grep -r "Version:" /path/to/wordpress/wp-content/plugins/digital-lottery/*.php | head -1

Verify Fix Applied:

Verify Digital Lottery plugin version is 3.0.6 or later in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual file uploads to /wp-content/plugins/digital-lottery/
  • POST requests with file uploads to plugin endpoints
  • Execution of unexpected PHP files in plugin directory

Network Indicators:

  • HTTP POST requests with file uploads to Digital Lottery endpoints
  • Unusual outbound connections from web server after file upload

SIEM Query:

source="web_server_logs" AND (uri_path="/wp-content/plugins/digital-lottery/" AND http_method="POST" AND content_type="multipart/form-data")

🔗 References

📤 Share & Export