提交 #857939: awesto django-shop 13d9a77aff7eede74a5f363c1d540e005d88dbcd CWE-362 Concurrent Execution using Shared Resource with Improper信息

标题awesto django-shop 13d9a77aff7eede74a5f363c1d540e005d88dbcd CWE-362 Concurrent Execution using Shared Resource with Improper
描述awesto/django-shop deducts product stock during checkout without locking the stock row or using an atomic conditional update. When a product has one unit remaining, two concurrent checkout requests can both pass the stock logic and create orders before the deduction is serialized. This allows overselling and leaves inventory or order state inconsistent with real availability.
来源⚠️ https://github.com/awesto/django-shop/issues/888
用户
 GalaxynC (UID 98975)
提交2026-06-13 13時24分 (1 月前)
管理2026-07-18 10時48分 (1 month later)
状态已接受
VulDB条目380028 [awesto django-shop 直到 1.2.4 Purchase Stock shop/models/inventory.py 竞争条件]
积分19

Want to stay up to date on a daily basis?

Enable the mail alert feature now!