Skip to main content

Digital Lottery CVE-2024-49242

CRITICAL
Unrestricted Upload of File with Dangerous Type (CWE-434)
2024-10-16 audit@patchstack.com
10.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Fingerprint WordPress site running Digital Lottery
  2. Delivery
    Identify plugin upload endpoint
  3. Exploit
    POST crafted PHP web shell file
  4. Install
    Server stores shell in web-accessible path
  5. C2
    Request shell URL to execute commands
  6. Execute
    Harvest wp-config.php database credentials
  7. Impact
    Pivot 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 1.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAI

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

NVD PRIMARY 10.0 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
Apr 29, 2026 - 10:22 NVD
10.0 (CRITICAL)
CVE Published
Oct 16, 2024 - 14:15 nvd
N/A

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
1.0%
Top 23% exploitable
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 1.0%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

51
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy