Repository navigation
Conversation
|
Hi @dyeddala , it looks like you forgot to include the ./vulnerable and ./patched folders in the commit, the docker compose file can't build anything |
0735e6a to
0c41cc2
Compare
|
Addressed.As per the comments. |
| @@ -0,0 +1,20 @@ | |||
| # --- Stage 1: Patched Instance (Tomcat 9.0.99) --- | |||
There was a problem hiding this comment.
It looks like this file was included by mistake since it is in the patched and vulnerable folder as well
| RUN cp -r /usr/local/tomcat/webapps.dist/* /usr/local/tomcat/webapps/ | ||
|
|
||
| # Keep write access disabled (readonly=true) on DefaultServlet | ||
| RUN sed -i '/<servlet-class>org.apache.catalina.servlets.DefaultServlet<\/servlet-class>/a \ <init-param>\n <param-name>readonly</param-name>\n <param-value>true</param-value>\n </init-param>' /usr/local/tomcat/conf/web.xml |
There was a problem hiding this comment.
Can you keep the readonly false and file-based session persistence the same as in the vulnerable container? This way we can test and be certain that the patched versions will not be detected by the plugin, and that changing the version alone is enough to patch it.
| docker compose up -d tomcat-patched | ||
| ``` | ||
|
|
||
| ### Testing the vulnerability |
There was a problem hiding this comment.
I believe this would only detect if partial PUT requests and default writeable servlet are enabled, which could be allowed in the patched version too.
Please review.