old-48 -- Command Injection (Filename)
URL: http://webhacking.kr:10006

Application seems to be simple chat server which allows us to send message, delete message and upload something, but upload doesn't say anything if it was successful or not..
/upload
gives Forbidden
instead of Not Found
...

Looks like if you upload
+ message
then file is successfully uploaded and can be viewed.

After uploading php shell we get php as text.

I tried overwriting .htaccess
to allow php execution, but unsuccessful.
The request which deletes files is somewhat interesting...

Since the filename is the only read foothold we should focus on that. We could try performing Command Injection via filenames?
Upload file named ;ls

Delete file:

Flag: FLAG{i_think_this_chall_is_cool}
Last updated