zenml-io/zenml does not expire the session after password reset
The application did not invalidate existing sessions when a user changed their password. An attacker who already had a session could keep using it even after the victim reset their password.
zenml
Originally disclosed on huntr
A vulnerability in zenml-io/zenml version 0.56.3 allows attackers to reuse old session credentials or session IDs due to insufficient session expiration. Specifically, the session does not expire after a password change, enabling an attacker to maintain access to a compromised account without the victim's ability to revoke this access. This issue was observed in a self-hosted ZenML deployment via Docker, where after changing the password from one browser, the session remained active and usable in another browser without requiring re-authentication.
From the GitHub Advisory Database (GHSA-99hm-86h7-gr3g, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the password-change routine updated the credential but did not revoke or rotate existing session tokens.
Impact
An attacker holding a stolen session could keep access to the account after the victim changed their password, and the victim could not revoke it.
What the attacker needed
Attacker already has a valid session; victim changes password
The fix
The application should invalidate all existing sessions when a password is changed.
How it was found
- Log in to the self-hosted ZenML instance from one browser.
- Change the account password from that browser.
- Open a second browser that still holds the old session and confirm it remains active without re-authentication.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you log in, the server gives your browser a session token so it remembers you. If you change your password, the server should throw away all old tokens so anyone else logged in is kicked out. Here it did not, so someone who had stolen a session could stay logged in even after the password was changed.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.