There exists a Java object deserialization vulnerability in multiple versions of WebLogic. Unauthenticated remote code execution can be achieved by sending a serialized `BadAttributeValueExpException` object over the T3 protocol to vulnerable versions of WebLogic. Leveraging an `ExtractorComparator` enables the ability to trigger `method.invoke()`, which will execute arbitrary code.
Linux,Unix,Windows
x86, x64
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/misc/weblogic_deserialize_badattr_extcomp
msf exploit(weblogic_deserialize_badattr_extcomp) > show targets
...targets...
msf exploit(weblogic_deserialize_badattr_extcomp) > set TARGET < target-id >
msf exploit(weblogic_deserialize_badattr_extcomp) > show options
...show and set options...
msf exploit(weblogic_deserialize_badattr_extcomp) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security