User Email Disclosure via ID-Based Invitation
When a user sets their email to private, inviting them by their WakaTime ID still reveals their email address. An attacker can use this to disclose the email of any user who has chosen privacy.
- Triaged in 27 hours
- Fixed in 34 hours
- Disclosed after 34 hours
###Summary: The issue occurs when inviting a user by their WakaTime ID. If a user has set their email to private, their email address still appears when they are invited using their ID. This contradicts the privacy settings and could lead to unintended email exposure.
###Steps to Reproduce: 1- When a user sets their email to private, anyone attempting to view it will see a page like this:

2- An attacker can use the user’s ID to invite them to their organization by either pasting the ID in the invitation section or send the invite request it looks like this:
POST /api/v1/users/current/orgs/59a5809f-2ba1-43de-b6d7-3ca104b79d80/people.bulk HTTP/2
Host: wakatime.com
Cookie:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.2651.74
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://wakatime.com/settings/orgs/59a5809f-2ba1-43de-b6d7-3ca104b79d80/people
Content-Type: application/json
X-Csrftoken: 9d881d42b2b05abc4b1e057b6f6dd058d394be28554afb508fcf988ed24ff283
X-Requested-With: XMLHttpRequest
Content-Length: 58
Origin: https://wakatime.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
X-Pwnfox-Color: red
Priority: u=0
Te: trailers
{"people":[{"id":"<victim_id>"}]}
3- After that, the victim's email will be disclosed.
###Suggested Fix:
- Ensure that email addresses remain hidden in all cases where a user has opted to keep them private.
- If inviting by ID, display only the username or a masked identifier rather than exposing the email.
Impact
- Email Address Disclosure: Users who believe their email is hidden may have it exposed to others.
- Privacy Violation
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
Impact
A user's private email address could be disclosed to anyone who knows their ID.
What the attacker needed
Attacker has an organisation; attacker knows victim's user ID; victim has email set to private
The fix
The invitation response should respect the user's email privacy setting and show only a username or masked identifier.
How it was found
- Set a user's email to private.
- Invite that user to an organisation by their ID.
- Observe the victim's email being disclosed.
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.
A user can choose to hide their email address from others. However, if someone invites that user to an organisation using the user's ID number, the hidden email is shown anyway. This means a private setting can be bypassed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.