HexBrain

Legal Robot · Report #255125

Null Byte Injection in all fields of Profile

Informativestatus
2upvotes
24 Feb 2018disclosed

How it was found

Hi Team,

Null byte injection is possible in all the fields of Edit Profile functionality.

Affected URL: https://app.legalrobot.com/account

Description: Possible Injection of control characters, such as Null Byte 0x00, \000, \x00, \z, or the Unicode representation \u0000 into vulnerable fields in the Message endpoints in order to cause unexpected, harmful behaviors. A null character can be placed in a any field of profile with the percent code %00. The ability to represent a null character does not always mean the resulting string will be correctly interpreted, as many programs will consider the null to be the end of the string.

POC:

  1. Register a User.
  2. Click on Account.
  3. Click on Edit Profile.
  4. Put some control characters.
  5. Click on submit.
  6. Control characters will be saved at Server side as well as rendered at client side.

Fix: Block the control characters from being saved on the back-end when included in user-input, as well as to suppress the output and rendering of previously-submitted control characters.

Please find the attached screen shot as well.

Thanks, Akash Saxena

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original