Session Duplication due to Broken Access Control
The report claims that an attacker can register an account using a victim's email address and obtain an API key before the victim completes a password reset, resulting in two parallel sessions. The attacker could then use the victim's API key to code on the victim's behalf, alter difficulty settings, and damage the victim's reputation.
- Disclosed after 40 hours
Due to improper validation of user before generating an API-KEY and improper measures taken at the time of password reset, it is possible to generate a parallel session at the attacker's end.
Proof of concept video is attached to confirm the vulnerability and to demonstrate the Impact of this logical bug.
Steps to Reproduce
Attacker
- Create an account with victims email.
- Download the coding platforms and get API-KEY.
- He can code from the platforms using the victims API-key.
Victim
- User fails to create an account, due to email already registered and does a password reset.
- Downloads the coding platform and get API-KEY.
- He codes using API-KEY.
It is possible for the Attacker and Victim, for coding at the same time, which will be shown at the dashboard. Attacker can reduce the difficulty and can damage the reputation of the coder.
Impact
Attacker can brute-force email and register multiple account on wakatime to get API-Key of many users.
Improper rank calculation.
Session duplication by the attacker
Attachments
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 application did not verify email ownership before issuing an API key and did not invalidate existing sessions or keys when a password reset occurred.
Impact
The attacker could use the victim's API key to code as them, reduce difficulty, and damage their reputation; the report also claims the attacker could brute-force emails to obtain many users' API keys.
What the attacker needed
Attacker knows victim's email; victim has not yet registered; victim later performs password reset
How it was found
- Create an account using the victim's email address.
- Download the coding platform and obtain an API key.
- The victim tries to create an account but is told the email is already registered, so they perform a password reset.
- The victim downloads the coding platform and obtains an API key.
- Both the attacker and the victim can code at the same time, visible on the dashboard.
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.
The system did not check that the email really belonged to you, so someone else could create an account with your email and get a key that lets them act as you. You then reset your password and got your own key, and both keys worked at the same time.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.