php type juggling
Occurs when php mistreats data types that resulting in unintended output
eg : "1" + 2 = 3
If string is empty
then it means 0
if converted to integer
== Operator
0e12345678
represents 0
raised to the power of 12345678
Therefore
=
Operator
=
OperatorPHP will treat both "admin" and "adminer" as strings , this is because the value "admintest" is assigned to username , and any non-empty string is considered true in a boolean context.
References : https://medium.com/swlh/php-type-juggling-vulnerabilities-3e28c4ed5c09
Last updated
Was this helpful?