Apache-Tomcat-MongoDB-Remote-Code-Execution
0x01 Add the following JARs to the /lib directory of Tomcat Server.
mongo-java-driver-3.10.2.jar
mongo-store-3.0.0.jar
Mongo-Tomcat-Sessions.jar
conf/context.xml
,and then append the following configuration,at last start both Tomcat Server and MongoDB Server.
0x02 Modify the configuration file <Valve className="com.dawsonsystems.session.MongoSessionTrackerValve"/>
<Manager className="com.dawsonsystems.session.MongoManager"
host="127.0.0.1"
port="27017"
database="sessions"
maxInactiveInterval="84"/>