Null byte injection
The invitation token parameter was not properly validated, allowing a null byte to be appended to a valid token and still be accepted. The attacker could craft a link that includes a null byte and additional characters, but the output was escaped so no XSS occurred.
Originally disclosed on HackerOne
- Triaged in 2 days
- Fixed in 10 days
- Disclosed after 11 days
Hi , I would like to report an issue that I have noticed in https://hackerone.com/users/sign_in?invitation_token= . I am not sure if this is a valid security issue , but I have decided to report it anyway and see what you guys think.
#Details:
- When you go to https://hackerone.com/users/sign_in?invitation_token=xxxx , you'll get a 404 page because
xxxxis not a voalid invitation token. - But if you go to https://hackerone.com/users/sign_in?invitation_token=eda8fca985bc4d4ef21f269ed2a24951 , you'll get a 200 response with the regular login form and a link at the bottom saying
Back to invitation..
I was trying to get XSS or open redirect through the Back to invitation link , but found a Null byte injection issue.
- If you go to
https://hackerone.com/users/sign_in?invitation_token=eda8fca985bc4d4ef21f269ed2a24951%00"><img src=x onerror=prompt(1) x=, you should get a 404 page , since it's not a valid invitation token , however , you won't! You'll get a 200 response with the regular login page and a link tohttps://hackerone.com/invitations/eda8fca985bc4d4ef21f269ed2a24951%00%22%3E%3Cimg%20src=x%20onerror=prompt(1)%20x=sayingBack to invitation, the invitation link is escaped so there is no XSS here. - This means that there is a Null byte injection issue with the code handling the
invitation_tokenparameter.
I couldn't get anything with that , however I believe it may lead to some serious issues!
I hope this helps. Thanks
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
The null byte injection could potentially lead to serious issues, but the reporter could not achieve any direct impact such as XSS or open redirect because the output was escaped.
What the attacker needed
A valid invitation token
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 null byte is a special character that some programming languages treat as the end of a string. The website checked the invitation token but stopped reading at the null byte, so it accepted a token that had extra characters after it. This did not lead to an attack here because the extra characters were safely escaped.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.