An avatar that runs commands
A profile-picture upload accepted a .php file. Find the shell on disk, then use the access log to see who called it and which command ran first.
- Terminal mission
- Beginner
- 3 questions
- 0 of 3 solved
Your goal
Your goalFind the web shell an avatar upload left behind, who used it, and the first command they ran.
The community forum on forum-01 lets members upload an avatar to /uploads. A member reported a broken image on another profile.
Search the web root for PHP that passes request input to system() or similar functions, then match the file name to the access log.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
Words to know
- PHP
- a language many web servers run
forum-01 · Web server logs
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in Web server logs
The whole walkthrough
Every step in order: 275 words, about 2 min. It gives away every answer, so try the steps first.