HomeBlogWordPress Plugins

LogField Report

Urgent Security Update: WPCode – Insert Headers and Footers Plugin Vulnerability Discovered

Published Written By Jeane Sumner Reading Time 2 Min Filed Under WordPress Plugins

Header & Footer Security Flaw

A recent security flaw has been discovered in the popular WPCode – Insert Headers and Footers + Custom Code Snippets plugin. With over a million installations, addressing this vulnerability is crucial as soon as possible. In addition, the United States Government National Vulnerability Database (NVD) has warned about this flaw.

Plugin Overview: The WPCode plugin, formerly known as Insert Headers and Footers by WPBeginner, is widely used for adding code snippets to the header and footer areas of WordPress websites. This functionality is essential for publishers who must add Google Search Console site validation code, CSS code, structured data, AdSense code, and more.

CSRF Vulnerability: The WPCode – Insert Headers and Footers plugin, in versions before 2.0.9, has been identified as having a Cross-Site Request Forgery (CSRF) vulnerability. A CSRF attack tricks registered WordPress users into clicking a link that performs unwanted actions on the site, with the attacker leveraging the user's credentials.

OWASP and CWE Definitions: The Open Worldwide Application Security Project (OWASP) and the Common Weakness Enumeration (CWE) website, sponsored by the United States Department of Homeland Security, provide detailed explanations of CSRF vulnerabilities and the potential consequences of successful attacks.

Log File Deletion: In this specific case, the vulnerability allows attackers to exploit users with the 'wpcode_activate_snippets' capability to delete arbitrary log files on the server, even those outside the blog folders.

Proof of Concept: WPScan, owned by Automattic, has published a proof of concept demonstrating the vulnerability's functionality. Proof of concept, in this context, is code that verifies and demonstrates that a vulnerability can work.

2023 Vulnerabilities: This is the second vulnerability discovered in 2023 for the WPCode Insert Headers and Footers plugin. Another vulnerability, found in February 2023, affected versions 2.0.6 or lower and involved "Missing Authorization to Sensitive Key Disclosure/Update."

Security Patch Issued: WPCode has responsibly released a security patch to address this vulnerability. The changelog for version 2.0.9 indicates "Fix: Security hardening for deleting logs."

Recommended Actions: Users of the WPCode – Insert Headers and Footers plugin are strongly advised to update their plugin to at least version 2.0.9. The most current version available is 2.0.10. Stay secure by keeping your plugins up to date!

Written By

Jeane Sumner

Founder and Flight Director

Jeane founded Website HQ after 20+ years as a web designer and developer. Her team looks after the websites of 200+ small businesses across the United States and Canada.

How We Make Our Content

A real person with real WordPress, hosting, and SEO experience plans and owns every post on this site. AI tools help us draft and organize, and a person checks every fact against its original source before anything goes live.

Find a mistake? Tell us at [email protected] and we’ll fix it. Read how we make our content

LogMore Field Reports

More posts like this one

Support you can count on

Call it WordPress management, maintenance or site care. We add security and make it hands-off for you.

Book a free, no-pressure call with Jeane's team. Plans start at $125 a month, and every one comes with a 30-day risk-free guarantee.

Florida coast at dusk with a lighthouse, palm trees and a rocket contrail arcing across the stars