Featured image of post 1229 PHPEMS Coupon Recharge Race Condition Poc

1229 PHPEMS Coupon Recharge Race Condition Poc

Vulnerability Information

Item Details
Vulnerability Name PHPEMS Coupon Recharge Race Condition Vulnerability
Affected Versions PHPEMS 11.0 and earlier
Type Logic Flaw
Severity Medium

Reproduction Environment

  1. Test Site: Local deployment
  2. Source Code Setup: Download any version from the official website: https://www.phpems.net/
  3. Tool: Burp Suite

Reproduction Steps

  1. Prepare data: Obtain a valid coupon code. img
  2. Create multiple regular user accounts.
  3. Retrieve the cookie value for each account.
  4. Add the cookies to the script’s cookies_list, replace TARGET_COUPONSN with the valid coupon code, then execute the script. img img img img

Verification Result : A single coupon can be used to recharge all accounts.Only one coupon redemption record is logged in the backend system.

Impact

Attackers can maliciously accumulate virtual assets. If the coupons are tied to real currency, this vulnerability may lead to direct financial losses.

Mitigation Recommendations

  1. Implement database row-level locking for coupon recharge operations.
  2. Add real-time validation of the coupon’s usage status.
  3. Restrict the frequency of recharge requests.
使用 Hugo 构建
主题 StackJimmy 设计