how to validate Null Byte Injection in php? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to validate Null Byte Injection in php?

I fully aware of that php is based on C but what i like to know is let's say string "helloworld" in C work as character array with last index of array is null byte value. My question is how to validate null byte injection inputs.

21st May 2017, 5:35 PM
Hein Htet
Hein Htet - avatar
1 Answer
0
Hi, In php, we are not handling null byte injection.I use simple end function to get the last key of array.php has different functions like count to get count of an array. you can read this article which will help you more about Null Byte in php http://resources.infosecinstitute.com/null-byte-injection-php/#gref
21st May 2017, 5:51 PM
Php
Php - avatar