| タイトル | 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 月 ago) |
|---|
| モデレーション | 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 |
|---|