Null Byte Poisoning
It's used to bypass input filtering or validation mechanisms in web applications or other systems. It involves inserting a null byte in URL encoding (%00
) or in hexadecimal (\x00
) to terminate strings.
We requested a site to get a resource but gives us a 403 error (Forbidden access). The site tells us that only certain types or extensions are allowed to be requested
We can bypass the check with a null byte and add the type of extension the site allows. When making the verification it will be bypassed as it ends on an allowed extension, but internally when searching the file, the null byte will end the string allowing to get the deride file
Also, if it doesn't work this way, we can URL-encode the
%
which will be represented as%25
Also is possible to get this result by modifying the hex data of the request and adding a null hex byte in the corresponding position
Last updated
Was this helpful?