CTF
Feedback - Web
I created this website to get your feedback on our CTF.
Can you check if it's secure ?
Author:Tr'GFx
There is a basic form asking for name, email and feedback:
And this form call a Javascript function func()
:
This function is creating a XML document and send it to feed.php.
The feed.php page is answering Thanks For you Feedback yourNameHere
so let's check if it is vulnerable to external entities (XXE):
Request headers:
Request body:
Response headers:
Response body:
The server reflected our external entity!
Let's ask for more!
Request body:
Response body:
Now let's use a PHP filter in the XXE:
Request body:
Response body:
So once base64 decoded:
I had to guess it was in ./flag
.
And if I don't want to base64 decode and being lazy I can ask for /proc/self/cwd/
.
Thanks For you Feedback Securinets{Xxe_xXE_@Ll_Th3_W@Y}
.