Rating: 5.0

# PHP Master (50 points)

## Description

Another one of *those* challenges.

Author: yakuhito

## Solution

php



You just need to bypass the filters here. You can see that there are two comparison operators, one just checks the similarity (==), and the other checks the similarity of types (===). I opened the [documentation](https://www.php.net/manual/en/language.operators.comparison.php) and immediately found the answer.

php
var_dump(100 == "1e2"); // 100 == 100 -> true


But we need to bypass one more filter: the presence of the letter "e" in the string. Simple as it is, just make it uppercase. As a result, we got such a request:

Flag: X-MAS{s0_php_m4ny_skillz-69acb43810ed4c42}

Original writeup (https://github.com/holypower777/ctf_writeups/tree/main/xmasCTF_2020/php_master).