Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Ldap injection

Hello,

First, sorry for my bad english, I don't speak very well english, I'm french.

I am actually exploiting an injection ldap but I am confronted to a problem.
I have access to all the attribute (name, surname, mail, phone, address, etc....) only one, the password !
The query is like (&(login=$[username])) and the password is stored in the attribute userpassword.
I have create an account that the username is user001 and password is plage

When I type user001)(userpassword=* in the field username, it return true

But when I type :
- user001)(userpassword=p*)
- user001)(userpassword=*a*)
- user001)(userpassword=plage)
it return false.
I also tried with b*, *c*, *d, *e*, *f*, *0*, *1*, *2*, etc... but it return false.

So I tried something else, I type user001)(!(userpassword=*), it return false
I type user001)(!(userpassword=jhdfhjkdsfhdsklfjgqs), it return true but when I type user001)(!(userpassword=*jhdfhjkdsfhdsklfjgqs*), it return false.
Also user001)(!(userpassword=plage) return true.

So I guess that the problem come from the wildcard
and the password is encrypted.
Does anyone have a solution to have the right query to have the userpassword ?
Thank you very much for the help !
:)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ttmyselfJan 20, 2018 11:26 PM 0 292 Jan 20, 2018 11:26 PM
Last Post: ttmyself
by KiuhnmJul 30, 2015 05:08 PM 11 1,392 Jul 30, 2015 05:08 PM
Last Post: Culperring722
by hacker625Mar 9, 2015 08:15 PM 6 255 Mar 9, 2015 08:15 PM
Last Post: hacker625