漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
one-api through 0.6.10 Missing Authorization on URL-Parameter Channel Pinning
Vulnerability Description
one-api gates one of its two channel-pinning paths and not the other. middleware/auth.go permits a request to name a specific channel either through a suffix on the API key or through a URL path parameter. The suffix path is reached only after model.IsAdmin succeeds and otherwise rejects the caller, while the path-parameter branch sets the selected-channel value from c.Param("channelid") with no role check at all. The route carrying that parameter sits behind token authentication only, so any account holding a valid API token reaches it. The value flows to the distributor, which loads the channel by integer identifier with no scoping to the caller's user or group, and then sets the outbound Authorization header to that channel's stored key and directs the request at the channel's base URL. A low-privilege account can therefore pin any channel by incrementing an identifier, causing the server to make upstream requests bearing an operator-configured provider key the account was never granted, and bypassing both the per-group restriction and the channel's model allowlist.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Vulnerability Type
授权机制缺失
Vulnerability Title
songquanpeng one-api 授权问题漏洞
Vulnerability Description
songquanpeng one-api是songquanpeng个人开发者的一个云端API管理平台。 songquanpeng one-api 0.6.10及之前版本存在授权问题漏洞,该漏洞源于middleware/auth.go中路径参数分支缺少角色检查,可能导致低权限账户通过指定任意通道绕过权限限制,使用未授权的供应商密钥发起上游请求。
CVSS Information
N/A
Vulnerability Type
N/A