Leaky site
Last updated
Was this helpful?
Last updated
Was this helpful?
the challenge description tell us to find the source code of main_page so this is a hint that the flag is there
let's visit the website https://thecybercoopctf-leaky-site.chals.io
we have in the url a query parameter that fetches resources and when we visit the website it fetches the resource main_page
so its obvious that this website may be vulnerable to LFI Local File Inclusion
to get the source code we are going to use a PHP Wrapper php://filter and this feature gets the content of the fetched encoded in base64
decoding this base64 string we get the main_page source code and there is our flag