Description
This module exploits a Java deserialization vulnerability in Apache Tomcat's session restoration functionality that can be exploited with a partial HTTP PUT request to place an attacker controlled deserialization payload in the <tomcat_root_dir>/webapps/ROOT/ directory.
For the exploit to succeed, writes must be enabled for the default servlet, and org.apache.catalina.session.PersistentManager must be configured to use org.apache.catalina.session.FileStore.
Verified working on 10.1.16-1
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/tomcat/partial_put_deserializationmsf undefined(partial_put_deserialization) > show actions ...actions...msf undefined(partial_put_deserialization) > set ACTION < action-name >msf undefined(partial_put_deserialization) > show options ...show and set options...msf undefined(partial_put_deserialization) > 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