Description
CoreShop through 1.5.5 contains an unauthenticated sql injection vulnerability in the api/Good/GetGoodsPageList endpoint via the unvalidated order parameter appended to ORDER BY. Attackers can inject subqueries that bypass SqlSugar's field check and use boolean-based or time-based blind techniques to extract member accounts and orders.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| CoreUnion | CoreShop | ≤ 1.5.5 | — |
References
- https://github.com/CoreUnion/CoreShop/issues/20 issue-tracking
- https://github.com/CoreUnion/CoreShop/commit/0453011fe2a5abc4c202894ed1d9e87b2accc9e4 patch
- https://github.com/CoreUnion/CoreShop/blob/v1.5.5/CoreCms.Net.Web.WebApi/Controllers/GoodController.cs#L233-L241 technical-description
- https://github.com/CoreUnion/CoreShop/blob/v1.5.5/CoreCms.Net.Repository/BaseRepository.cs#L155-L165 technical-description
- https://hackmd.io/@hieuPenguinnn/coreshop-goods-orderby-sql-injection third-party-advisory
- https://github.com/CoreUnion/CoreShop product
- VulnCheck Advisory: CoreShop through 1.5.5 SQL Injection via order Parameter in GetGoodsPageList third-party-advisory