Phonebook - Hack the box Write up -- Web LDAP injection
0x00 Problem
0x01 Check the vulnerability
When we see the login form on the website, it might be command injection, SQL injection, LDAP injection.
We can see that this need us to login with workstation username, it might be LDAP injection.
0x02 LDAP injection payload
Here is the basic LDAP injection payload. We can check the vulnerability.
user=*)(&
password=*)(&
--> (&(user=*)(&)(password=*)(&))
0x03 Locate the flag
Then we change our payload to check if the password is the flag.
user=Reese
password=HTB*)(&
--> (&(user=Reese)(password=HTB*)(&
The password is the flag!
0x04 Brute force
We have to brute force to get the flag. The flag may contain all the lower and upper alphabets, numbers and '_', '}'.