| 标题 | zhistaredu 3.8.1 Use of Hard-coded Password |
|---|
| 描述 | 产品:StarTraining 3.8.1
漏洞:JWT 硬编码密钥可伪造身份令牌
摘要:`application.yml` sets `token.secret` to a fixed 26-char string. `UserLoginService.createToken()` signs HS512 JWT without `exp`. Attacker can forge tokens for arbitrary `user_id` / `company_id`.
影响:Full API access as any user when secret is unchanged.
修复:Rotate secret via env; add exp/iat claims; remove debug println of secret/token.
|
|---|
| 来源 | ⚠️ https://github.com/ArrestX/startraining-advisories/blob/main/advisories/ST-VULN-001-jwt-hardcoded-secret-forge.md |
|---|
| 用户 | Vseen (UID 99867) |
|---|
| 提交 | 2026-08-03 02時17分 (2 月前) |
|---|
| 管理 | 2026-09-25 10時57分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 409898 [zhistaredu StarTraining 直到 3.8.1 JWT Token application.yml UserLoginService.createToken user_id/company_id 弱身份验证] |
|---|
| 积分 | 20 |
|---|