Description
EFAK 5.0.0 through 5.1.0 contains a missing authorization vulnerability that allows authenticated low-privilege users to read LLM provider API keys through the /api/model-config REST API. Attackers with any ROLE_USER account can query /api/model-config/page or /api/model-config/{id} to retrieve unmasked keys, enabling provider account access and incurred costs.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| smartloli | EFAK | 5.0.0 – ≤ 5.1.0 | — |
References
- https://hackmd.io/@hieuPenguinnn/efak-missing-admin-gate-user-management-api third-party-advisory
- https://github.com/smartloli/EFAK/blob/v5.1.0/efak-web/src/main/java/org/kafka/eagle/web/controller/ModelConfigController.java#L34-L56 technical-description
- https://github.com/smartloli/EFAK/blob/v5.1.0/efak-web/src/main/java/org/kafka/eagle/web/security/config/WebSecurityConfig.java#L89-L93 technical-description
- https://github.com/smartloli/EFAK product
- VulnCheck Advisory: EFAK 5.0.0 through 5.1.0 Missing Authorization via /api/model-config Exposes API Keys third-party-advisory