- $_GET parameter
- Version of PHP
- 5.2+ for data://
- allow_url_include function enabled
php://expect
The expect:// wrapper is not enabled by default as it's an extension from the PECL package (consider it installed for now). The syntax it accepts is:
Consider this small snippet running on the backend:
Now we can pretty much run everything php-valid through it. so take the following URL for instance:
php://data
The data:// wrapper bears the same concept. Syntax followed:
or we can simply:
We'll take under account that we'll be using the above inclusion of the $_GET parameter so there be two possible scenarios:
In case of a WAF, filtering out code that is after the wrapper as in the last examples, we can use parameter pollution to pass/split our payload into two parts, resulting in both parameters being concatenated and separated by a comma likewise:
0 comments:
Post a Comment