Description
DataBuff ai-apm-web through 0.1.10 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge admin session tokens by using the hardcoded HMAC secret in JwtTokenService. Attackers can sign a payload of admin and a future expiry with the default dev-secret to gain full administrative access to protected /webapi routes, including the Doris SQL query API.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| databufflabs | databuff | ≤ 0.1.10 | — |
References
- https://hackmd.io/@hieuPenguinnn/databuff-default-jwt-secret-auth-bypass third-party-advisory
- https://github.com/databufflabs/databuff/blob/v0.1.10/ai-apm-web/src/main/resources/application.yml#L54-L59 technical-description
- https://github.com/databufflabs/databuff/blob/v0.1.10/ai-apm-web/src/main/java/com/databuff/apm/web/config/JwtProperties.java#L8-L15 technical-description
- https://github.com/databufflabs/databuff/blob/v0.1.10/ai-apm-web/src/main/java/com/databuff/apm/web/auth/JwtTokenService.java#L36-L60 technical-description
- https://github.com/databufflabs/databuff product
- VulnCheck Advisory: DataBuff ai-apm-web through 0.1.10 Authentication Bypass via Hardcoded HMAC Secret third-party-advisory