Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
EverShop Missing Authorization on PATCH /api/customers/:id Allows Unauthenticated Account Takeover
Vulnerability Description
The customer update route in EverShop is declared with "access": "public" in packages/evershop/src/modules/customer/api/updateCustomer/route.json, which causes the admin authentication middleware to call next() without checking the caller, and no customer-session middleware guards the route; the only middleware in the chain parses the JSON body. The handler in updateCustomer.js then loads the customer by the uuid taken from the URL path and writes the supplied fields back to that record, hashing a password if one is provided, without verifying that the caller owns the record. An unauthenticated request carrying a known customer uuid can therefore overwrite that customer's email address and password and read back the updated record from the 200 response, taking over the account and locking out its owner. Customer uuids are exposed through order confirmation email links and administrative URLs. Version 2.2.1 changes the route to "access": "private".
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
授权机制缺失
Vulnerability Title
EverShop 授权问题漏洞
Vulnerability Description
EverShop是EverShop社区开源的一个 NodeJS 电商平台。 EverShop 2.2.1之前版本存在授权问题漏洞,该漏洞源于客户更新路由被错误声明为公共访问,且未验证调用者对客户记录的所有权,可能导致未经身份验证的攻击者利用已知客户uuid覆盖客户邮箱和密码,从而接管账户并锁定合法用户。
CVSS Information
N/A
Vulnerability Type
N/A