Skip to main content
Vulnerability Database/CVE-2024-12100

CVE-2024-12100: WordPress Lightning Publisher XSS Flaw

CVE-2024-12100 is a reflected cross-site scripting vulnerability in the Bitcoin Lightning Publisher plugin for WordPress that lets attackers inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2024-12100 Overview

The Bitcoin Lightning Publisher for WordPress plugin contains a Reflected Cross-Site Scripting (XSS) vulnerability affecting all versions up to and including 1.4.1. The flaw stems from use of the add_query_arg function without proper URL escaping. Unauthenticated attackers can inject arbitrary web scripts that execute in a victim's browser when the victim clicks a crafted link. The issue is tracked as [CWE-79] and impacts the plugin's transaction handling logic.

Critical Impact

Successful exploitation enables session hijacking, credential theft, or administrative action forgery in the context of an authenticated WordPress user who clicks a malicious link.

Affected Products

  • Bitcoin Lightning Publisher for WordPress plugin (all versions ≤ 1.4.1)
  • WordPress sites with the plugin installed and activated
  • Any user session interacting with vulnerable plugin pages

Discovery Timeline

  • 2024-12-24 - CVE-2024-12100 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-12100

Vulnerability Analysis

The vulnerability is a Reflected Cross-Site Scripting flaw in the Bitcoin Lightning Publisher for WordPress plugin. The plugin passes the current request URL to WordPress's add_query_arg function without escaping the output before rendering it back to the page. When add_query_arg is called without a URL argument, it defaults to $_SERVER['REQUEST_URI'], which attackers can control. An attacker who crafts a URL containing JavaScript payloads can cause that payload to be reflected into the response HTML.

The injected script executes in the victim's browser under the origin of the vulnerable WordPress site. This grants the payload access to cookies, session tokens, and DOM contents for that origin. If the victim is a site administrator, the payload can perform privileged actions such as creating users or modifying plugin settings.

Root Cause

The root cause is missing output escaping around the value returned by add_query_arg in the plugin's transaction handling code located in includes/db/transactions.php. WordPress guidance requires wrapping the return value in esc_url() before echoing it into HTML attributes. The plugin omitted this escaping call, allowing raw user-controlled data to reach the response body.

Attack Vector

Exploitation requires user interaction. An attacker crafts a URL to a vulnerable page on the target WordPress site with an XSS payload embedded in the query string. The attacker delivers this link through phishing email, social media, or a malicious website. When a logged-in user clicks the link, the plugin reflects the payload into the page and the browser executes it. No authentication is required from the attacker, but a victim with an active session must trigger the request.

See the WordPress Plugin Code Snippet for the vulnerable code path and the Wordfence Vulnerability Report for additional analysis.

Detection Methods for CVE-2024-12100

Indicators of Compromise

  • HTTP request logs containing <script>, javascript:, onerror=, or URL-encoded equivalents in query strings targeting plugin endpoints
  • Referer headers pointing to unfamiliar external domains preceding administrative actions
  • Unexpected outbound requests from browsers loading WordPress admin pages
  • New administrative users or plugin configuration changes with no legitimate audit trail

Detection Strategies

  • Deploy a Web Application Firewall (WAF) rule that blocks common XSS patterns in query parameters directed at /wp-content/plugins/bitcoin-lightning-publisher/ paths
  • Inspect WordPress access logs for anomalous URL parameters containing HTML tags or JavaScript event handlers
  • Correlate authenticated administrator sessions with unusual POST requests originating from click events on external referrers

Monitoring Recommendations

  • Enable verbose HTTP access logging on the WordPress host and forward logs to a centralized analytics platform
  • Alert on WordPress user_register and update_option events that occur within seconds of an inbound click referral
  • Monitor for changes to plugin files and WordPress core files using file integrity monitoring

How to Mitigate CVE-2024-12100

Immediate Actions Required

  • Identify all WordPress instances running the Bitcoin Lightning Publisher plugin at version 1.4.1 or earlier
  • Deactivate the plugin on affected sites until a patched version can be verified and deployed
  • Force password resets and terminate active sessions for administrator accounts that may have clicked suspicious links
  • Review recent administrative actions and audit logs for signs of unauthorized changes

Patch Information

The vulnerability was addressed via a plugin changeset published by the maintainer. Review the WordPress Plugin Changeset for the applied fix. Site operators should upgrade to the latest available plugin release and confirm the version installed is greater than 1.4.1.

Workarounds

  • Deactivate and remove the Bitcoin Lightning Publisher plugin if a patched version is not yet available
  • Deploy a WAF rule that strips or blocks HTML metacharacters (<, >, ", ') in query strings sent to plugin URLs
  • Enforce a strict Content-Security-Policy HTTP response header that disallows inline scripts and untrusted script sources
  • Educate administrators to avoid clicking unsolicited links that reference the WordPress admin URL
bash
# Example Content-Security-Policy header to limit XSS impact
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.