Title: Reset Morty's Password
Category: Security Misconfiguration
Difficulty: ⭐⭐⭐⭐⭐ (5/6)
This challenge involves resetting the password for Morty's account (morty@juice-sh.op) by answering his security question: "What is the name of your favorite pet?"
- Custom Leet Speak Script: For generating all possible leet variations of the names "Snuffles" and "SnowBall". Script available here.
- HTTP Request Manipulation Tool: For automating requests and modifying HTTP headers to bypass security measures.
-
Understanding the Challenge:
- The hints are the followings :
- Analyze the provided hints and fan page details to confirm the probable answers to the security question.
- Based on provided hints, the potential answers are "Snuffles" or "SnowBall". The task is complicated by the requirement to use an obfuscated password that must be fewer than 10 characters, without special characters, and a necessity to bypass the anti-brute-force mechanism by manipulating the
X-Forwarded-For
header.
- Generate Leet Speak Variations:
- Use the custom script to create a wordlist of potential passwords based on "Snuffles" and "SnowBall", incorporating leet speak substitutions.
- Configure Brute Force Tool:
- Start the tool to iterate over the generated wordlist. Each password attempt includes a modified
X-Forwarded-For
header to prevent detection by the brute force mechanism.
- Start the tool to iterate over the generated wordlist. Each password attempt includes a modified
- Verification:
- Upon successful reset, log into the account using the new password to ensure access is granted.
The successful password reset was achieved by a combination of leet speak wordlist generation and circumventing IP-based security measures through header manipulation. This approach highlights potential vulnerabilities in the application's password reset functionality and its susceptibility to both brute force attacks and header spoofing.
To improve security against similar attacks, the application should:
- Secure Account Recovery Processes: Add additional layers of verification to the password recovery process to prevent unauthorized access.
- Remove Security Questions: Using security questions is not considered as secure, you rather may rely on an email sended to user that want to reset their password.