nest-admin before 1.0.1 Authentication Bypass via Hardcoded JWT Secret
- Published
- Last modified
- Status
- published
- Known exploitation
- Not listed in CISA KEV
- Fix
- Fixed in 1.0.1
- Public exploit
- None on Exploit-DB
Summary
The nest-admin application, a NestJS-based administration project, is affected by this vulnerability. An unauthenticated attacker could forge administrator tokens using a JWT secret hardcoded in a committed configuration file, gaining full administrative control over the application.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
nest-admin before 1.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge administrator tokens by using a hardcoded JWT_SECRET committed in .env.production. Attackers can sign tokens with the known secret that JwtStrategy and RbacGuard trust, impersonating any user ID or claiming the admin role for full administrative access.
Affected versions
- buqiyuan nest-admin
fixed in 1.0.1