Description
nesquena hermes-webui contains an environment variable leakage vulnerability where profile switching does not clear environment variables from the previously active profile before loading the next profile. Attackers or users can exploit additive dotenv reload behavior to access provider API keys and other sensitive secrets from one profile context in another profile, breaking expected security isolation between profiles.
Problem types
CWE-668: Exposure of Resource to Wrong Sphere
Product status
Any version before PR #351
Credits
Chia Min Jun Lennon
References
github.com/...ommit/88dc8bbe26a6055161d3251b70f5cd3d3c5831b0 (Patch Commit)
github.com/nesquena/hermes-webui/pull/351 (Pull Request)
github.com/nesquena/hermes-webui/releases/tag/v0.50.132 (Release Notes)
github.com/nesquena/hermes-webui/releases/tag/v0.50.12 (Release Notes)
www.vulncheck.com/...e-credential-leakage-via-profile-switch