New API: Redis user quota cache overwrite via PUT /api/user/self allows quota bypass
QuantumNous new-api
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/QuantumNous/new-api Go |
|
|
Original description
New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. Prior to 1.0.0-rc.16, repeated PUT /api/user/self requests that update language or sidebar_modules can race relay billing because controller/user.go calls User.Update and updateUserCache performs a full RedisHSetObj write to user:.Quota, overwriting concurrent HINCRBY deductions and allowing an authenticated user to keep cached quota artificially high. This issue is fixed in version 1.0.0-rc.16.
From the CVE record · GitHub_M