Public research

Razorpay for WooCommerce

CVE-2026-104118
Unauthenticated shipping-information modification

Medium, 5.3 · Public source snapshot: November 12, 2026

Original portfolio report · Source reference · Source reference · Source reference · Source reference · Source reference · Source reference · Source reference · Source reference · Source reference · Public advisory

Shared credits and the scope of my investigation are documented below.

Mallory needs no WordPress account to submit a shipping calculation against Alice's WooCommerce order on the affected Magic Checkout workflow. In Razorpay for WooCommerce 4.8.7, the request names an order by its numeric ID, passes a permission callback that always returns true, and can store calculated shipping data on that order. This is unauthorized modification of checkout state, not a general payment bypass, account takeover, or compromise of Razorpay's payment network.

The public WPScan advisory credits my research, identifies versions before 4.8.8 as affected, and rates CVE-2026-104118 Medium, CVSS 5.3, CWE-639. It was published October 2, 2026; its reproduction details are now public. The fixed release is 4.8.8.

I reviewed the public proof of concept, the 4.8.7 and 4.8.8 source tags, and the earlier Magic Checkout introduction. I did not execute the request, complete a payment, or test a live store. The vulnerable route and metadata write are already present in 3.0.0, the earliest release I verified; the preceding 2.8.6 tag lacks this API directory. Intermediate releases were not individually inspected, so the advisory's broader affected range remains distinct from those sampled snapshots.

Razorpay's WooCommerce plugin includes Magic Checkout, also called 1CC. Alice owns an existing order containing shippable products. Mallory controls an unauthenticated HTTP request, including the target order_id and a destination used to calculate shipping. She does not possess Alice's login, order key, or a valid request signature.

The public reproduction assumes Magic Checkout is enabled and the store has a usable shipping configuration. The plugin's enable_1cc setting defaults to no; route registration is loaded by the plugin rather than being a reliable access-control check on that setting. Configuration existence does not establish deployment prevalence. A successful metadata write requires a valid order and a rate calculation reaching the nonempty-response path. Optional shipping and marketplace extensions can change downstream behavior.

Order IDs identify records; they do not prove that a caller is entitled to change them. The shipping route should authenticate its caller and bind the request to the specific order before rebuilding the cart or persisting shipping information.

A permission callback that performs no authentication

In 4.8.7 includes/api/api.php, rzp1ccInitRestApi() registers POST /wp-json/1cc/v1/shipping/shipping-info with callback calculateShipping1cc and permission callback checkAuthCredentials. Despite its name, the latter performs no authentication. In includes/api/auth.php:

function checkAuthCredentials()
{
    return true;
}

The release already has a separate HMAC verifier, used by another route, but the shipping route does not select it. A missing signature therefore does not stop this request at its permission boundary.

Caller-selected order data reaches a persistent write

validateInput('shipping', $params) in includes/utils.php checks that an order ID and addresses are supplied. It does not check ownership. calculateShipping1cc() in includes/api/shipping-info.php then reads those values:

$orderId      = (int) sanitize_text_field($params['order_id']);
$addresses    = $params['addresses'];
$rzpOrderId   = sanitize_text_field($params['razorpay_order_id']);

The same $orderId reaches create1ccCart() in includes/api/cart.php, which loads the order's items into a cart without verifying the caller's authority over that order. The handler updates the calculation customer's destination, calculates rates, and passes the order ID through shippingCalculatePackages1cc() and getItemResponse1cc() to prepareRatesResponse1cc().

Once rates are available, that function persists the response against the chosen order:

if (isHposEnabled()) {
    $order = wc_get_order($orderId);
    $order->update_meta_data( '1cc_shippinginfo', $response);
    $order->save();
}else{
   add_post_meta($orderId, '1cc_shippinginfo', $response);
}

This is the order-integrity boundary crossing: an unauthenticated caller can cause shipping metadata to be saved on Alice's order. Sanitizing an integer or address does not authorize that write. Cart cleanup after processing does not remove the saved order metadata.

Legacy storage can preserve an earlier calculation

With legacy post-based order storage, add_post_meta() appends another 1cc_shippinginfo value rather than replacing an earlier one. Later, WC_Razorpay::update1ccOrderWC() in 4.8.7 woo-razorpay.php retrieves a single value with get_post_meta($wcOrderId, '1cc_shippinginfo', true). This is the first-row persistence problem described in the public PoC: a later legitimate calculation need not supersede an earlier maliciously triggered row.

The downstream effect needs careful qualification. In the WCFM marketplace branch with store shipping enabled, the consumer uses stored prices when building shipping line items and can pass those prices to vendor-shipping/commission updates. The ordinary non-marketplace branch instead takes its shipping charge from the fetched Razorpay order's shipping_fee. The source therefore does not support claiming that this metadata modification universally changes the amount charged on every WooCommerce store.

Release history

The public Added magic checkout change introduced the permissive route and legacy metadata append. Both are present in 3.0.0, whereas the preceding 2.8.6 tag has no includes/api directory. I verified those boundaries and the affected 4.8.7 snapshot, not every intervening patch release or historical extension combination. The 4.8.7-to-4.8.8 comparison contains the corresponding authorization and storage changes.

The supported primitive is an unauthenticated write of calculated shipping metadata to another customer's order. Mallory chooses an order ID and destination; the store's shipping rules determine the available rates. This is not arbitrary control over every order field or every price. A valid existing order, usable items and a nonempty shipping response are meaningful constraints. Optional extensions may impose additional checks or failure paths.

The public PoC describes using a cheap destination and, with legacy storage, retaining its earlier metadata row when Alice completes checkout. Source review supports the append/read mismatch and the conditional marketplace consumer. I have not independently reproduced a financial consequence, measured order-ID discovery, or established that every storage mode has the same first-row behavior. HPOS uses an update operation, so its persistence semantics differ even though missing authorization remains relevant to the write.

Useful controls are a legitimate authorized request for Alice's order, a request targeting another order, a nonexistent order, no available shipping rates, missing or invalid signatures, and the same sequence with legacy storage and HPOS. These were not executed in this review. They would distinguish route reachability from a persisted change and any later effect on checkout totals.

The public WPScan PoC supplies the actual request and reports affected and fixed-build results. Its sequence is:

  1. Use an isolated WooCommerce store running the affected plugin with Magic Checkout and a shipping configuration that produces rates. Create Alice's disposable order and record its shipping metadata.
  2. Without a cookie, nonce, or signature, submit JSON to POST /wp-json/1cc/v1/shipping/shipping-info, naming Alice's order in order_id, a caller-supplied razorpay_order_id, and an address containing id, zipcode, city, state_code, and country.
  3. Inspect that order's 1cc_shippinginfo. For the legacy-storage sequence, compare metadata rows before and after a later legitimate calculation rather than assuming the latest value is the one consumed.
  4. Compare the unsigned request against 4.8.8. WPScan reports HTTP 403, Signature missing, with no write. The inspected fixed permission callback contains that rejection path; I did not observe the response myself.

This describes the published reproduction, not a new executed exploit or fabricated transcript. No payment-network calls or live financial tests were performed for this write-up. The request changes order state and can affect checkout processing: use only disposable orders in an authorized local lab, avoid real payments and fulfillment, and restore or delete those orders afterward.

Upgrade to 4.8.8 or a later supported release. The fixed source addresses three related parts of the path:

  • The shipping route uses checkHmacSignature, rejecting absent, invalid, or unconfigured signing material before its callback runs.
  • Before cart mutation, calculateShipping1cc() loads the target order, retrieves its stored Razorpay order ID, and rejects a missing or mismatched association. It normalizes the optional order_ prefix for comparison and uses the stored ID downstream.
  • Legacy storage uses update_post_meta() instead of appending another shipping metadata row.

The release includes regression tests in tests/phpunit/tests/test-shipping-info-auth.php covering signatures, cross-order mismatches, valid signed requests, prefix normalization, unchanged victim metadata and repeated metadata writes. I inspected those tests but did not run the PHP/WooCommerce suite. Deployment validation should cover the actual shipping extensions and both supported order-storage modes, preserving legitimate checkout while confirming rejected requests leave order and cart state unchanged.

CVE-2026-104118 is an order-authorization failure in the Magic Checkout shipping workflow. The vulnerable route trusts a caller-selected order ID and persists calculated shipping metadata without authentication or order binding. Legacy metadata stacking can retain an earlier calculation; financial consequences depend on the later consumer and store configuration, particularly marketplace shipping handling. The behavior is present in the inspected 3.0.0 and 4.8.7 sources and corrected in 4.8.8. This analysis is based on public source and the now-public reproduction, not a newly executed attack.