Home > 5-Labs > BePractical > Account TakeOver Lab4

Account TakeOver Lab4
Lab Bepractical

Description

As usual, try logging in with admin@bepractical.tech.
first register new account and login nothing new. So, let’s check reset password function

Reset Password

type the email and click send

reset password

ok now check the email to see the otp

reset link

But this time, there is a reset link instead of an OTP like in previous labs. So, let’s copy the link to check it

Crack The Hash

link

I noticed the term Secret_key followed by a value. I think this is some kind of hash. At first, I considered cracking this hash on the CrackStation website, but I didn’t get the value. Since it’s 32-bit, I thought it might be MD5. To be sure, I took this value to a hash analyzer, and yes, it’s MD5.

I think this hash is something related to the user. So, we can try various strings like name, username, email address, phone number, password, etc.

By trying the email address used to log in, I got a match

hash match

We now go back to the Forgot Password functionality, type in the admin account email, and click send

reset admin

“So now, let’s get the hash for the admin account email address we are trying to take over.”

admin hash

let’s take the admin hash as secret_key then copy the link and paste it in firefox

admingg

Admin account …. Hacked gg