Skip to main content
Vulnerability Database/CVE-2026-108784

CVE-2026-108784: Macrozheng Mall Payment Logic Vulnerability

CVE-2026-108784 is a business logic flaw in macrozheng mall affecting payment processing through the AlipayServiceImpl component. Attackers can manipulate payment amounts remotely. This article covers technical details, affected versions, impact assessment, and available patches.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108784 Overview

CVE-2026-108784 is a business logic vulnerability [CWE-840] affecting macrozheng mall versions up to 1.0.3. The flaw resides in the AlipayServiceImpl.pay function within com/macro/mall/portal/service/impl/AlipayServiceImpl.java, part of the Payment Endpoint component. An attacker can manipulate the total_amount argument sent to the payment service to trigger business logic errors. The exploit is public and can be launched remotely without authentication. A patch is available as commit dcaa93b3150352e5044708d7211b5bed0af4509f.

Critical Impact

Remote attackers can tamper with the payment amount parameter, enabling order payments at attacker-controlled values and causing financial integrity loss for merchants running macrozheng mall.

Affected Products

  • macrozheng mall versions up to and including 1.0.3
  • The AlipayServiceImpl payment service component
  • Deployments exposing the mall-portal Alipay payment endpoint

Discovery Timeline

  • 2026-10-12 - CVE-2026-108784 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-108784

Vulnerability Analysis

The vulnerability is a business logic error in the Alipay integration of the macrozheng mall e-commerce platform. The pay method in AlipayServiceImpl accepted the total_amount field from client input and forwarded it directly to the Alipay trade request. The server trusted this attacker-controlled value instead of recomputing it from the order record stored in the backend database. As a result, a remote user could submit a legitimate order and then invoke the payment flow with an arbitrarily reduced total_amount, settling the order for far less than its real price.

The public exploit requires only an HTTP request to the payment endpoint and no prior authentication beyond standard order creation. The impact is scoped to integrity and availability of financial transaction data, with no direct confidentiality loss on the host system.

Root Cause

The root cause is missing server-side validation of trust-boundary data. The payment service used the total_amount parameter supplied in the AliPayParam request object as the authoritative order amount. The authoritative value should have been read from OmsOrder in the database using the order ID. The patch introduces an OmsOrder lookup via OmsOrderMapper and uses Asserts to reject requests whose claimed amount does not match the stored order total.

Attack Vector

An unauthenticated remote attacker places an order through the normal shop workflow, then calls the Alipay payment endpoint with a modified total_amount value. Because the server echoes the client-supplied amount into the Alipay AlipayTradeWapPayRequest, the Alipay gateway charges the lowered amount while the order itself remains marked for the original goods.

java
// Patch excerpt - AlipayServiceImpl.java
 import com.alipay.api.request.AlipayTradeQueryRequest;
 import com.alipay.api.request.AlipayTradeWapPayRequest;
 import com.alipay.api.response.AlipayTradeQueryResponse;
+import com.macro.mall.common.exception.Asserts;
 import com.macro.mall.mapper.OmsOrderMapper;
+import com.macro.mall.model.OmsOrder;
 import com.macro.mall.portal.config.AlipayConfig;
 import com.macro.mall.portal.domain.AliPayParam;
 import com.macro.mall.portal.service.AlipayService;
// Source: https://github.com/macrozheng/mall/commit/dcaa93b3150352e5044708d7211b5bed0af4509f
// The fix: 支付订单金额改为从数据库订单表中获取 (payment amount is now retrieved from the database order table)

Detection Methods for CVE-2026-108784

Indicators of Compromise

  • Payment transactions in Alipay settlement reports where the charged total_amount is substantially lower than the order subtotal recorded in oms_order.
  • HTTP requests to the mall-portal Alipay pay endpoint containing manually crafted or unusually low total_amount values.
  • Order records whose pay_amount deviates from the sum of order items plus freight.

Detection Strategies

  • Reconcile each Alipay transaction against the server-side OmsOrder.total_amount field and alert on mismatches.
  • Add application-layer logging that captures the orderId and submitted total_amount for every call to AlipayServiceImpl.pay.
  • Correlate web access logs for repeated POSTs to the payment endpoint from the same session with varying amount values.

Monitoring Recommendations

  • Enable WAF rules that inspect payment endpoint parameters and flag numeric fields outside expected ranges.
  • Forward application logs to a centralized analytics platform and build dashboards tracking payment-amount discrepancies over time.
  • Monitor the mall-portal service for anomalous order-to-payment ratios indicative of underpayment abuse.

How to Mitigate CVE-2026-108784

Immediate Actions Required

  • Apply the upstream patch dcaa93b3150352e5044708d7211b5bed0af4509f from the macrozheng mall repository and redeploy the mall-portal module.
  • Audit historical Alipay transactions for amount tampering and initiate chargebacks or recovery where appropriate.
  • Restrict public exposure of the payment endpoint until the patch is deployed.

Patch Information

The maintainers published commit dcaa93b3150352e5044708d7211b5bed0af4509f, which modifies AlipayServiceImpl.java and OmsPortalOrderService.java to retrieve the authoritative order amount from the database rather than from client input. See the GitHub commit details and the discussion in GitHub Issue #998 for context. Additional vulnerability metadata is available on VulDB CVE-2026-108784.

Workarounds

  • Implement a server-side interceptor that overwrites total_amount with the value stored in OmsOrder before the Alipay request is signed.
  • Add a reconciliation job that compares each completed Alipay payment to the originating order total and automatically voids mismatched transactions.
  • Deploy a WAF signature that rejects payment requests where the total_amount field differs from the amount cached server-side at order creation.
bash
# Example build and redeploy of the patched mall-portal module
git fetch origin
git checkout dcaa93b3150352e5044708d7211b5bed0af4509f
mvn -pl mall-portal -am clean package -DskipTests
systemctl restart mall-portal

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.