Description
The Ubiquiti UniFi Network Application versions 5.13.29 through 6.5.53 are affected by the Log4Shell vulnerability whereby a JNDI string can be sent to the server via the 'remember' field of a POST request to the /api/login endpoint that will cause the server to connect to the attacker and deserialize a malicious Java object. This results in OS command execution in the context of the server application.
This module will start an LDAP server that the target will need to connect to.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/ubiquiti/unifi_log4shellmsf undefined(unifi_log4shell) > show actions ...actions...msf undefined(unifi_log4shell) > set ACTION < action-name >msf undefined(unifi_log4shell) > show options ...show and set options...msf undefined(unifi_log4shell) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub