Digital Lottery CVE-2024-49242
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconFingerprint WordPress site running Digital Lottery
-
DeliveryIdentify plugin upload endpoint
-
ExploitPOST crafted PHP web shell file
-
InstallServer stores shell in web-accessible path
-
C2Request shell URL to execute commands
-
ExecuteHarvest wp-config.php database credentials
-
ImpactPivot to full site and database takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Required conditions: target WordPress site must have the Shafiq Digital Lottery plugin installed and active at any version ≤ 3.0.5, and the plugin's upload endpoint must be reachable over the network (default for public WordPress sites). No authentication required (PR:N), no user interaction required (UI:N), no special configuration toggle - the unrestricted upload behavior appears to be the default plugin behavior. Limiting factor: the plugin has a relatively small install footprint compared to mainstream WordPress plugins, so exploitation is bounded by plugin adoption rather than by technical prerequisites. |
| Impact | This is a top-priority issue. The CVSS vector AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H represents the worst-case profile: remotely reachable, low complexity, no authentication, no user interaction, and scope change with full CIA impact. EPSS of 0.97% (77th percentile) is moderate and likely reflects the plugin's limited install base rather than exploit difficulty - when WordPress plugin upload vulnerabilities are exploited, they are typically mass-scanned. The vulnerability is not on CISA KEV and no public exploit is identified at time of analysis, but the Patchstack disclosure source and trivial exploitation profile make opportunistic scanning highly probable for any site running the plugin. |
| Exploit ScenarioDerived | An attacker scans the internet for WordPress sites running the Digital Lottery plugin (fingerprintable via plugin asset paths), then sends a crafted HTTP POST request to the vulnerable upload endpoint containing a PHP web shell disguised or directly named with a .php extension. The server stores the file in a web-accessible directory, and the attacker requests the uploaded file via browser to execute commands as the web server user, then pivots to database credentials in wp-config.php for full site takeover. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Unrestricted file upload in the Shafiq Digital Lottery WordPress plugin (versions up to and including 3.0.5) allows remote unauthenticated attackers to upload web shells and achieve full server compromise. The CVSS 10.0 score with scope-change reflects that successful exploitation extends impact beyond the plugin to the entire hosting environment, and no public exploit identified at time of analysis though Patchstack disclosure typically accompanies plugin-level POCs.
RemediationAI
No vendor-released patch identified at time of analysis - the affected range extends through the latest known version 3.0.5 with no fixed version cited. Site administrators should immediately deactivate and remove the Digital Lottery plugin until Shafiq Digital publishes a patched release, then monitor the Patchstack advisory database for fix availability. As compensating controls, restrict access to the plugin's upload endpoints via web server rules (e.g., .htaccess deny rules on the plugin's upload handler URL), disable PHP execution in WordPress uploads directories using a PHP handler block in nginx/Apache config (side effect: may break legitimate plugins that rely on dynamic content in uploads), and deploy a WAF rule blocking multipart POSTs containing PHP file extensions to the plugin's endpoints. Audit the wp-content/uploads directory for suspicious .php, .phtml, or .phar files indicating prior compromise.
Affected ProductsAI
Shafiq Digital Lottery WordPress plugin, all versions from unspecified initial release through and including 3.0.5. The Patchstack advisory (audit@patchstack.com is the reporting source) is the authoritative reference; consult patchstack.com/database for the specific advisory. No CPE string was provided in the input data, and no upper-bound fixed version is identified in the available intelligence.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Digital Lottery is a WordPress plugin by Shafiq Digital used to run lottery-style functionality on WordPress sites. The root cause is CWE-434 (Unrestricted Upload of File with Dangerous Type), where the plugin's file upload handler fails to validate file extensions, MIME types, or content against an allowlist, permitting attackers to submit executable PHP files (web shells) into a web-accessible directory. Once uploaded, the PHP interpreter executes the shell on subsequent HTTP requests, granting attacker-controlled code execution under the web server user context.
Know when Wordpress Plugin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
Unrestricted Upload of File with Dangerous Type vulnerability in Shafiq Digital Lottery digital-lottery allows Upload a Web Shell to a Web Server.This issue affects Digital Lottery: from n/a through <= 3.0.5.
Executive ViewAI
The Shafiq Digital Lottery WordPress plugin (versions ≤3.0.5) contains a critical vulnerability enabling unauthenticated file uploads that lead to complete server compromise. Organizations using this plugin face immediate risk of data theft, service disruption, and potential malware deployment. Urgent action is required to prevent exploitation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Immediately deactivate and uninstall the plugin; (2) Deploy Web Application Firewall rules blocking file uploads to plugin directories; (3) Enable file integrity monitoring on affected servers; (4) Restrict write permissions on upload directories at the operating system level; (5) Implement strict file type validation at the reverse proxy; (6) Enable continuous security logging and alerting on file upload attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB