# Exploit Title: CITSmart ITSM - LDAP Injection  
# Google Dork: "citsmart.local"  
# Date: 29/12/2020  
# Exploit Author: skysbsb  
# Vendor Homepage:  
# Version: <  
# CVE : CVE-2020-35775  
To exploit this flaw it is necessary to have at least one user/password previously registered, because the system checks (ldap bind) the first user returned in the ldap search. However, it returns the last user found in the search to the function that called it (logic error).  
So, I call this problem an LDAP injection in conjunction with a programming logic error that allows you to authenticate to CITSmart ITSM with another valid user without needing to know the target user's password.  
Affected versions: <  
Fixed versions: >=  
Using this LDAP query in the username field of login page you could login with the target_username account without knowing the target account password.  
You must know at least one username/password because the autenticacaoAD() function at class (package will try to bind with the first user (valid_username) of the query result.  
Vendor has acknowledge this vulnerability at ticket 5929 (