Skip to content
Account takeover Disclosed report Beginner CVE-2024-4311

Missing ratelimit on passwrod resets in zenml

The password change function lacked rate limiting, so an attacker could repeatedly guess the current password. A successful guess let the attacker change the password and take over the account.

zenml-io/zenml

Originally disclosed on huntr

zenml-io/zenml version 0.56.4 is vulnerable to an account takeover due to the lack of rate-limiting in the password change function. An attacker can brute-force the current password in the 'Update Password' function, allowing them to take over the user's account. This vulnerability is due to the absence of rate-limiting on the '/api/v1/current-user' endpoint, which does not restrict the number of attempts an attacker can make to guess the current password. Successful exploitation results in the attacker being able to change the password and take control of the account.

From the GitHub Advisory Database (GHSA-j3vq-pmp5-r5xj, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

The password change endpoint did not limit how many attempts could be made, so the current password could be brute-forced.

Impact

An attacker could guess the current password, change it, and take control of the account.

What the attacker needed

Access to the password change function; ability to send many requests

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 change your password, the site usually asks for your current one first. If the site lets someone try that guess over and over with no limit, a program can keep guessing until it gets it right. Here, that meant an attacker could guess the password, set a new one, and lock the real owner out.

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.

More from zenml-io/zenml

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.