EverShop is a TypeScript-first eCommerce platform. During category update and deletion event handling, the application embeds path / request_path values—derived from the url_key stored in the database—into SQL statements via string concatenation and passes them to execute(). As a result, if a malicious string is stored in url_key , subsequent event processing modifies and executes the SQL statement, leading to a second-order SQL injection. Patched from v2.1.1.
The application stores the url_key value in the database. During processing of category update or deletion events, the path and request_path fields — derived from url_key — are inserted directly into SQL queries using string concatenation and passed to the execute() function. If an attacker manages to save a malicious string in url_key, it will be used in the subsequent stage during SQL query execution, which is a classic second-order SQL injection — the payload is not executed immediately upon input, but during the next data processing.
An attacker can gain unauthorized access to data stored in the database (high confidentiality) and modify it (high integrity), which in an e-commerce environment means a risk of customer data, orders, and store configuration leakage.
Update EverShop to version v2.1.1 or later, in which the vulnerability has been patched. The fix is available in commit 5c5bdf2c1ad5d16ae68e9e48b494563953b6d1cd in the vendor's repository.
EverShop in versions prior to v2.1.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XEvershop
APPEvershop≤ 2.1.0
Related vulnerabilities
EverShop: token resetowania hasła ujawniany w odpowiedzi API
Hardkodowany sekret HMAC w @evershop/evershop umożliwia fałszowanie tokenów JWT
RCE i ujawnienie danych w EverShop NPM przez plik route.json
A Denial of Service (DoS) vulnerability in evershop 2.1.0 and prior allows unauthenticated attackers to exhaus...
EverShop 2.0.1 allows a remote unauthenticated attacker to upload arbitrary files and create directories via t...