Case File: The Cracked Hash
Arewa Microfinance's old web app stored passwords as unsalted SHA-1. With written authorisation, audit a copy of its user table: crack what falls to a wordlist in milliseconds, spot the accounts that share a password, and unlock the admin console with what you find. The users and passwords are generated for you alone.
Arewa Microfinance · Episode 4
The Cracked Hash
If this table ever leaks for real, how many accounts fall in the first minute?
Musa Head of IT · WhatsApp
Hi, it’s Musa. Halima asked me to prove or disprove something: that our old web app’s passwords are “fine”. I think they are. We hash them, after all.
I have exported a copy of the user table for an authorised audit. Please crack what you can and tell me how bad it is. Be gentle with me.
The brief
Scope and authorisation. Halima (CISO) has authorised an audit of this exported copy of the old app’s users table and of the internal admin console, nothing else. You are testing password strength, not breaking in.
You have:
- the table, where every password is stored as a SHA-1 hash with no salt,
- a wordlist of common passwords,
- a small cracker that hashes the wordlist and compares it with the table,
- the admin console, which opens only with the admin’s real password.
Work out how many accounts fall to the wordlist, what the administrator’s password is, and which password is shared by several accounts.
The flag: sign in to the admin console with the password you cracked. The session note shows the flag. Submit it at the bottom of this page.
Preparing the leaked database…
Musa, a little later: “Okay, that was uncomfortable. But in my defence, our policy forces a capital letter, a number and a symbol. Something like ‘P@ssw0rd’ has all three. Surely that counts for something?”
Look at your cracked list again. What do you say to him?
🔒 The debrief unlocks when you close the case. Finish the lab above.
The debrief
Musa: “I take your point. It was the length and the lack of salt, not the lack of symbols. I will ask the developers to change the storage first and the policy second.”
What a senior analyst would do next. Report the finding with counts, not names: how many accounts fell, how fast, and how many shared a password. Recommend switching to a slow, salted hash such as bcrypt or Argon2, forcing a reset for every account on the old hashes, checking new passwords against lists of known breached passwords, and turning on a second factor for staff, especially the administrator.
The ideas to keep.
- No salt means shared passwords show. Identical hashes meant identical passwords, and one crack opened several accounts.
- A fast hash is a gift to the attacker. Hashing the whole wordlist took a few milliseconds. A slow hash makes every guess expensive.
- Complexity rules are a weak defence. ‘P@ssw0rd’ meets the rules and is in every wordlist. Length, uniqueness and a second factor matter more.
Where you will build it. The backend development course shows how to store passwords the right way, in the lesson on authentication, sessions and password storage.
Next episode: the search box.
Write your audit finding for Musa
State the scope, how many accounts fell and how fast, why they fell, and what should change. Use counts, not people's passwords.
🧪 Want to practise this on your own computer? See how to set up your lab →