Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-56162 EUVD-2025-32581GHSA-wfc7-vvw3-2pq2

YOSHOP 2.0 suffers from an unauthenticated SQL injection in the goodsIds parameter of the /api/goods/listByIds endpoint. The getListByIds f…

Published Oct 2, 2025 · Updated Oct 2, 2025 · Assigned by mitre

Description

YOSHOP 2.0 suffers from an unauthenticated SQL injection in the goodsIds parameter of the /api/goods/listByIds endpoint. The getListByIds function concatenates user input into orderRaw('field(goods_id, ...)'), allowing attackers to: (a) enumerate or modify database data, including dumping admin password hashes; (b) write web-shell files or invoke xp_cmdshell, leading to remote code execution on servers configured with sufficient DB privileges.

References