Executive brief
QuantumNous new-api is a Go-based API component used for managing user accounts and financial top-up transactions. A security flaw in its search functionality allows logged-in users to submit specially crafted search queries that can overwhelm the database. This can lead to significant performance degradation or a complete service outage, preventing legitimate users from accessing their accounts or processing payments.
Technical details
A SQL injection vulnerability exists in the SearchUserTopUps and SearchAllTopUps functions within model/topup.go. The application fails to escape SQL wildcard characters (such as % and _) in the 'keyword' parameter before concatenating them into a GORM 'LIKE' query. An authenticated remote attacker can provide a complex pattern of wildcards, forcing the database engine to perform expensive combinatorial backtracking. This results in high CPU consumption and exhaustion of database connections, leading to a Denial of Service (DoS). The vulnerability affects the /api/user/topup/self endpoint. No official patch has been released by the vendor as of the disclosure date.
Affected products
- QuantumNous new-api <= 0.12.1
Timeline
- 2026-04-06: disclosed: Initial researcher disclosure via GitHub Gist
- 2026-05-23: advisory: NVD/VulDB publication