ABLE TO TRICK THE VICTIM INTO USING A CRAFTED EMAIL ADDRESS FOR A PARTICULAR SESSION AND THEN LATER TAKE BACK THE ACCOUNT
A signup link with an empty email parameter causes the signup form to ask for an email address, but the account is still created for the attacker's email. An attacker can send this link to a victim, who signs up thinking they are using their own email, and later the attacker can reset the password and read the victim's messages.
- Triaged in 7 days
- Fixed in 46 days
- Paid in 6 days
- Disclosed after 3 months
Hi I have found a vulnerability in your website using which i can trick the victim into using a specific email address to login in into the website and him thinking that he is using his own email address and continuing the session and then later we can take back the account and check what are the chats he made UNDER SOME CIRCUMSTANCES
HOW TO REPRODUCE:- scenarios - a team admin sends you and the victim a joining link to his team. it looks like this:- https://hackerone.cloud.mattermost.com/signup_user_complete/?d={"display_name":"\u003ch1\u003ea","email":"██████████","name":"main"}&t=cqtkyznxn8e43yagt9fjcsrc4nh6yoqq914in3zg4ykj1jkjbc9bippckjikj4cw
now we can see that there is an Email value and a token value. here the email value doesn't matter because even if we change it . you will be login as the email to which the link was send. the token is assigned according to a particular email value but interesting thing happens when we remove the email value and keep it blank (REFER TO THIS EMAIL)
https://hackerone.cloud.mattermost.com/signup_user_complete/?d={"display_name":"\u003ch1\u003ea","email":"","name":"main"}&t=cqtkyznxn8e43yagt9fjcsrc4nh6yoqq914in3zg4ykj1jkjbc9bippckjikj4cw
IF we go to the first link it asks us for name and password BUT if we go to the second link it ask's for username password and email(HERE things get interesting) even if we give a different email address to it . you will be signed as the attacker email id and the you can continue the session thinking that its your own email id you are using
Impact
the attacker can use his own invite link and then remove the email value from it and send it to the victim. when the victim clicks he sees 3 fields he give his own email id password and username and continue the session when done he log's out then the attacker can use forget password to take back his account and look through all of his private messages
STEPS TO REPRODUCE :-
- go to the first link you will be asked for username and password(DON'T SUBMIT JUST SEE THE CONTENTS)
2.go to the second link you will be also asked for email(ENTER ALL THE VALUES ) 3.now if you check the email address it will be different from the original email address (you are using a forged email id) of the attacker
NOW I HAVE RATED IT HIGH BECAUSE USING THIS WE CAN SEE ALL THE CONVERSATION'S HE DID FOR A PARTICULAR SESSION I WILL ATTACH THE POC BELOW
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 signup handler trusts the email embedded in the invitation token instead of the email submitted in the form, and an empty email parameter triggers a different form flow that still uses the token's email.
Impact
An attacker could trick a victim into creating an account tied to the attacker's email, then use password reset to take over the account and read the victim's private messages for that session.
What the attacker needed
Attacker has a team invite link; victim clicks the modified link; victim completes the signup form
How it was found
- Open the invitation link that includes an email value and a token; the page asks for username and password.
- Modify the link by removing the email value so it is empty, keeping the same token.
- Open the modified link; the page now also asks for an email address.
- Enter any email address, username, and password, and complete the signup.
- Observe that the account is created for the email from the original token, not the email entered.
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 sign up through an invitation link, the website usually knows which email the invite was sent to. Here, if the email part of the link is left blank, the form asks you to type an email, but the website ignores what you type and still creates the account for the email that was originally in the link. So a victim can end up with an account that actually belongs to the attacker's email address.
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.