CVE-2024-3105CWE-94

Woody code snippets – Insert Header Footer Code, AdSense Ads <= 2.5.0 -Authenticated (Contributor+) Remote Code Execution

Critical · published June 15, 2024

CVSS v3.1
9.9
EPSS
3%
Percentile
86.3
In the wild
Unconfirmed
What it is

🚨 A seemingly innocent shortcode is the gateway to chaos! The Insert Header Footer Code, AdSense Ads plugin for WordPress allows remote code execution for any authenticated user with contributor access or above. 🔥 Think of it like a hotel where the front desk staff can unexpectedly access the management office without anyone checking their credentials — a little too much trust in the wrong hands! This vulnerability could allow an attacker to execute any code on the server, leading to a complete takeover of the site. Imagine a malicious user altering your website's content, stealing sensitive data, or even planting malware — all because of one overlooked code snippet!

Put simply

Think of it like a hotel where the front desk staff can unexpectedly access the management office without anyone checking their credentials — a little too much trust in the wrong hands! The vulnerability arises from the 'insert_php' shortcode not being restricted to high-level authorized users, enabling contributors and above to run arbitrary PHP code on the server.

What to do

This vulnerability could allow an attacker to execute any code on the server, leading to a complete takeover of the site. Imagine a malicious user altering your website's content, stealing sensitive data, or even planting malware — all because of one overlooked code snippet! Immediately update the plugin to version 2.5.1 or later to patch this vulnerability. Additionally, consider reviewing user roles and restricting access to avoid potential exploitation. Regularly monitor your website for any unauthorized changes! You've got this! By taking these steps, you’re helping to secure your site like a seasoned pro! 🛡️

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02778 · 86.3th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-06-15T08:42Z
EPSS history
Timeline
  • 15 JUN 08:42Z
    Woody code snippets – Insert Header Footer Code, AdSense Ads <= 2.5.0 -Authenticated (Contributor+) Remote Code Execution
    cvelistv5