Description
vlife through 2.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge JWTs using the hardcoded HS256 signing key in TokenUtil. Attackers can sign a token with superUser=true and arbitrary groupIds claims to gain super administrator access to any URL on vlife instances.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| wwwlike | vlife | ≤ 2.0.1 | — |
References
- https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/vlife-hardcoded-jwt-secret-token-forgery third-party-advisory
- https://github.com/wwwlike/vlife/blob/4f03b19b91d82781939653f5b0d9a70721734d6d/vlife-boot-starter-web/src/main/java/cn/wwwlike/web/security/filter/TokenUtil.java#L33-L58 technical-description
- https://github.com/wwwlike/vlife/blob/4f03b19b91d82781939653f5b0d9a70721734d6d/vlife-base/src/main/java/cn/wwwlike/config/VlifeUrlDecisionManager.java#L25 technical-description
- https://github.com/wwwlike/vlife product
- VulnCheck Advisory: vlife through 2.0.1 Authentication Bypass via Hardcoded JWT Secret in TokenUtil third-party-advisory