Skip to content
Misconfiguration Disclosed report Intermediate

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.

Mahmoud Gamal Follow

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:

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 to https://hackerone.com/invitations/eda8fca985bc4d4ef21f269ed2a24951%00%22%3E%3Cimg%20src=x%20onerror=prompt(1)%20x= saying Back 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_token parameter.

I couldn't get anything with that , however I believe it may lead to some serious issues!

I hope this helps. Thanks

The original report as published on HackerOne, by zombiehelp54. 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

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.

More by Mahmoud Gamal

View all

32 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.