CVE-2024-50494
📋 TL;DR
This vulnerability allows attackers to upload arbitrary files, including web shells, to WordPress servers running the vulnerable Sudan Payment Gateway for WooCommerce plugin. Attackers can achieve remote code execution and full server compromise. All WordPress sites using affected plugin versions are at risk.
💻 Affected Systems
- Sudan Payment Gateway for WooCommerce WordPress plugin
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Complete server takeover with data theft, defacement, malware distribution, and lateral movement to other systems.
Likely Case
Web shell installation leading to data exfiltration, credential theft, and backdoor persistence.
If Mitigated
File upload attempts blocked or detected before execution, limiting damage to failed attack attempts.
🎯 Exploit Status
Exploitation requires no authentication and uses simple HTTP file upload requests.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.2.3 or later
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Sudan Payment Gateway for WooCommerce'. 4. Click 'Update Now' if available, or delete and install fresh version 1.2.3+ from WordPress repository.
🔧 Temporary Workarounds
Disable vulnerable plugin
allTemporarily deactivate the plugin until patched.
wp plugin deactivate wc-sudan-payment-gateway
Web server file upload restrictions
linuxConfigure web server to block uploads to plugin directories.
# In Apache .htaccess: <FilesMatch "\.(php|phtml|php3|php4|php5|php7|phps|php-s|pht|phar)$">
Order Allow,Deny
Deny from all
</FilesMatch>
🧯 If You Can't Patch
- Remove the plugin entirely and use alternative payment gateway
- Implement WAF rules to block file uploads to the plugin's upload endpoint
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin → Plugins → Installed Plugins for 'Sudan Payment Gateway for WooCommerce' version ≤1.2.2.
Check Version:
wp plugin get wc-sudan-payment-gateway --field=version
Verify Fix Applied:
Confirm plugin version is 1.2.3 or higher in WordPress admin panel.
📡 Detection & Monitoring
Log Indicators:
- HTTP POST requests to /wp-content/plugins/wc-sudan-payment-gateway/ upload endpoints
- File creation events for .php/.phar files in plugin directories
Network Indicators:
- Unusual file uploads to payment gateway endpoints
- POST requests with executable file extensions
SIEM Query:
source="web_server" AND (uri_path="/wp-content/plugins/wc-sudan-payment-gateway/*" AND method="POST" AND file_extension IN ("php", "phar", "phtml"))