CVE-2024-12516

6.4 MEDIUM

📋 TL;DR

This stored XSS vulnerability in the WordPress Coupon Plugin allows authenticated attackers with Contributor-level access or higher to inject malicious scripts into coupon code fields. The scripts execute when users view pages containing the injected coupon, potentially compromising visitor browsers. All WordPress sites using this plugin up to version 1.2.1 are affected.

💻 Affected Systems

Products:
  • WordPress Coupon Plugin
Versions: All versions up to and including 1.2.1
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin enabled. Contributor-level authentication or higher is needed for exploitation.

⚠️ 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

Attackers could steal admin session cookies, redirect users to malicious sites, deface websites, or install malware on visitor systems through persistent script execution.

🟠

Likely Case

Attackers with contributor accounts inject malicious scripts that steal user session cookies or redirect users to phishing pages when they view coupon pages.

🟢

If Mitigated

With proper input validation and output escaping, the vulnerability is prevented, and only legitimate coupon codes are displayed without script execution.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access but is straightforward once an attacker has contributor privileges. The vulnerability is well-documented in security advisories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 1.2.1

Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3215992%40coupon-lite&new=3215992%40coupon-lite&sfp_email=&sfph_mail=

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Coupon Plugin' and click 'Update Now'. 4. Verify the plugin version is higher than 1.2.1.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate coupon-lite

Restrict User Roles

all

Remove contributor-level access from untrusted users

🧯 If You Can't Patch

  • Remove contributor and higher privileges from untrusted users
  • Implement web application firewall rules to block XSS payloads in coupon parameters

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for Coupon Plugin version 1.2.1 or lower

Check Version:

wp plugin get coupon-lite --field=version

Verify Fix Applied:

Verify plugin version is higher than 1.2.1 in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual coupon code entries containing script tags or JavaScript in WordPress logs
  • Multiple failed login attempts followed by coupon creation/modification

Network Indicators:

  • Outbound connections to suspicious domains from coupon pages
  • Unexpected script loads in coupon page responses

SIEM Query:

source="wordpress.log" AND ("coupon" AND ("<script>" OR "javascript:" OR "onerror=" OR "onload="))

🔗 References

📤 Share & Export