提交 #797305: datavane datavanes <= 1.0.0-SNAPSHOT Improper Authentication信息

标题datavane datavanes <= 1.0.0-SNAPSHOT Improper Authentication
描述Datavines through the latest version has a JWT authentication bypass vulnerability in TokenManager.java and AuthenticationInterceptor.java. The JWT signing secret is hardcoded as a default value "asdqwe" in @Value("${jwt.token.secret:asdqwe}"), and the configuration key is absent from application.yaml, causing all default deployments to use the same secret. Additionally, AuthenticationInterceptor.preHandle() validates the token password by comparing it against itself (extracted from the same token via tokeManager.getPassword(token)) rather than against the database record, making the password check always pass. An unauthenticated attacker can forge a valid JWT token for any user (including admin) and gain full access to all protected API endpoints without knowing any credentials.
来源⚠️ https://github.com/datavane/datavines/issues/580
用户
 anch0r (UID 96691)
提交2026-04-05 09時38分 (21 日前)
管理2026-04-25 12時32分 (20 days later)
状态已接受
VulDB条目359597 [Datavane Datavines 直到 13607645e14a4982468cfdbcf75c85cde63bae71 JWT Token TokenManager.java tokenSecret 弱加密]
积分20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!