Skip to content
Account takeover Disclosed report Beginner

Failure to check password history

The application let users change their password to a previously used one without checking password history, undermining password rotation policies.

c0d3fire Follow

Originally disclosed on HackerOne

  • Disclosed after under an hour

I discovered that old passwords could be reused and believe that wakatime.com could benefit if there was a check for old passwords in your database.

Because password reuse is an important concern in any organization. Many users want to reuse the same password for their account over a long period of time. The longer the same password is used for a particular account, the greater the chance that an attacker will be able to determine the password through brute force attacks. If users are required to change their password, but they can reuse an old password, the effectiveness of a good password policy is greatly reduced.

POC

  1. Create a account in wakatime.com or use a existed one.
  2. Go to settings "Change Password" where the password settings are located.
  3. Change the password with your previous password
  4. Password is changed to same password as before.

Criticality This impacts every user that has an account with wakatime.com.

Suggested fix

  • Set Enforce password history to 24. This will help mitigate vulnerabilities that are caused by password reuse.
  • Set Maximum password age to 60 days. Try to expire the passwords between major business cycles to prevent work loss.
  • Configure Minimum password age so that you do not allow passwords to be changed immediately.

The original report as published on HackerOne, by c0d3fire. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 function does not compare the new password against a stored history of previous passwords.

Impact

Password reuse reduces the effectiveness of password changes and policy, increasing brute-force risk over time.

What the attacker needed

A user account; knowledge of an old password

The fix

The password change function should check the new password against a history of previous passwords and reject reuse.

How it was found

  1. Create or use an existing account on the site.
  2. Go to the Change Password settings.
  3. Enter a previously used password as the new password.
  4. The password is accepted and changed to the same old password.

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, a good system should stop you picking one you used before. Here the site let the user set the same password again, so password reuse was possible.

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 by c0d3fire

View all

1 more disclosed report, best first.

More from WakaTime

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.