Local File Inclusion
Statement
Get in the admin section.
Analyzation
Nothing much to do. Click on any tab.
There is a query. So I guess files
is for a directory.
Click on any file on the screen
There is a new query. This time I guess f
is for a file.
Let’s do some path traversal
So we can only travel back to one directory.
There is it, admin
. But is it a file or a directory? Try both of them, I know it is a directory.
index.php
file! Read it
Check these lines in that file
1
2
$realm = 'PHP Restricted area';
$users = array('admin' => 'OpbNJ60xYpvAQU8');
That’s our flag.
The flag is
1
OpbNJ60xYpvAQU8
This post is licensed under CC BY 4.0 by the author.