CVE-2024-50494

10.0 CRITICAL

📋 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

Products:
  • Sudan Payment Gateway for WooCommerce WordPress plugin
Versions: All versions up to and including 1.2.2
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with WooCommerce and the vulnerable plugin 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 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.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires no authentication and uses simple HTTP file upload requests.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.2.3 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/wc-sudan-payment-gateway/wordpress-sudan-payment-gateway-for-woocommerce-plugin-1-2-2-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 '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

all

Temporarily deactivate the plugin until patched.

wp plugin deactivate wc-sudan-payment-gateway

Web server file upload restrictions

linux

Configure 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"))

🔗 References

📤 Share & Export