Hack This Site! Basic Missions: Basic 8

Nouf
1 min readApr 4, 2020

--

Level 8

Challenge:

Sam remains confident that an obscured password file is still the best idea, but he screwed up with the calendar program. Sam has saved the unencrypted password file in /var/www/hackthissite.org/html/missions/basic/8/

However, Sam’s young daughter Stephanie has just learned to program in PHP. She’s talented for her age, but she knows nothing about security. She recently learned about saving files, and she wrote a script to demonstrate her ability.

Solution:

This time I had to inject the server, so writing “<! — #exec cmd=”ls ../ — ->”

and the result was

so I went to the au12ha39vc.php and the password appeared.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Nouf
Nouf

Written by Nouf

PenTester & Challenges Solver

No responses yet

Write a response