Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-12005 Overview
CVE-2024-12005 is a Cross-Site Request Forgery (CSRF) vulnerability affecting the WP-BibTeX plugin for WordPress in all versions up to and including 3.0.1. The flaw originates from missing or incorrect nonce validation in the wp_bibtex_option_page() function. Unauthenticated attackers can inject malicious web scripts by tricking a site administrator into clicking a crafted link or visiting an attacker-controlled page. The vulnerability is tracked under CWE-352: Cross-Site Request Forgery.
Critical Impact
Successful exploitation allows attackers to persist malicious scripts within plugin options, leading to stored script execution against site administrators and visitors through administrator interaction.
Affected Products
- Infinitescript WP-BibTeX plugin for WordPress, versions through 3.0.1
- WordPress sites with the plugin active and an authenticated administrator session
- All WordPress installations using the vulnerable wp_bibtex_option_page() handler
Discovery Timeline
- 2025-01-21 - CVE-2024-12005 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12005
Vulnerability Analysis
The WP-BibTeX plugin exposes an options page handler, wp_bibtex_option_page(), that processes administrative form submissions without validating a WordPress nonce token. WordPress nonces defend state-changing requests by ensuring the submission originated from an authenticated workflow in the admin interface. When nonce verification is absent, any origin can trigger the handler on behalf of a logged-in administrator.
An attacker crafts a malicious page or email link that submits a forged request to the plugin's option endpoint. If an administrator with an active session visits the page, the browser automatically includes authentication cookies, and the plugin accepts the forged input as legitimate. Because the stored values are rendered back into administrative pages, the attacker can plant script payloads that execute in the context of the WordPress admin.
The combined CSRF and script injection chain enables unauthenticated attackers to achieve script execution without any valid credentials, relying solely on administrator interaction. For technical review, see the WordPress Plugin Code Review and the Wordfence Vulnerability Analysis.
Root Cause
The root cause is the absence of a wp_verify_nonce() or check_admin_referer() call in the wp_bibtex_option_page() function. WordPress provides nonces specifically to bind form submissions to an authenticated user session. Without this verification, the handler accepts any submission that arrives with valid admin cookies, regardless of origin.
Attack Vector
Exploitation requires an attacker-hosted page containing an auto-submitting HTML form or JavaScript that posts to the vulnerable plugin endpoint on the target WordPress site. The attacker delivers the link through phishing, forum posts, or malvertising. When an authenticated WordPress administrator visits the page, the browser sends the forged POST request with session cookies attached. The plugin writes the attacker-controlled values into options storage, and the injected script executes when administrators load the affected page.
No verified public exploit code is available for this vulnerability. Readers can review the vulnerable handler source and the applied patch in WordPress Changeset #3225023.
Detection Methods for CVE-2024-12005
Indicators of Compromise
- Unexpected modifications to WP-BibTeX plugin options stored in the wp_options table
- HTTP POST requests to the WP-BibTeX options page originating from external Referer headers
- Script tags, event handlers, or encoded payloads present in plugin configuration fields
- Administrator session activity correlated with inbound traffic from unknown third-party domains
Detection Strategies
- Monitor WordPress audit logs for changes to WP-BibTeX settings outside of planned administrative windows
- Inspect web server access logs for POST requests to wp-admin pages with missing or external Referer values
- Scan rendered admin pages for untrusted script content injected into plugin configuration output
- Deploy a web application firewall rule to flag requests to the plugin's option handler lacking a valid nonce parameter
Monitoring Recommendations
- Enable WordPress security logging plugins to capture option changes and administrator actions
- Alert on administrator-authenticated POST requests whose Origin or Referer does not match the site domain
- Review installed plugin versions on a recurring schedule and compare against vendor advisories
How to Mitigate CVE-2024-12005
Immediate Actions Required
- Update the WP-BibTeX plugin to a version later than 3.0.1 that contains the nonce validation fix
- Audit wp_options entries related to WP-BibTeX for unauthorized script content and remove any injected payloads
- Rotate administrator credentials and invalidate active sessions if forged requests are suspected
- Review recent administrator activity logs for unexplained configuration changes
Patch Information
The vendor addressed the vulnerability by adding nonce verification to the affected handler. Review the applied code change in WordPress Changeset #3225023. Site owners should apply the patched release through the WordPress plugin dashboard or by replacing the plugin files directly from the official WordPress plugin repository.
Workarounds
- Deactivate and remove the WP-BibTeX plugin until the patched version is installed if an immediate update is not feasible
- Restrict administrator access to the WordPress admin interface using IP allowlists at the web server or firewall level
- Require administrators to use isolated browser profiles when managing WordPress to reduce exposure to CSRF payloads
- Deploy a web application firewall ruleset that enforces Referer and Origin checks on wp-admin POST requests
# Example: restrict wp-admin access by IP using Apache .htaccess
<Directory "/var/www/html/wp-admin">
Require ip 203.0.113.0/24
Require ip 198.51.100.42
</Directory>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

