Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testbed for CVE-2017-12617 - Apache Tomcat RCE Via JSP Upload #104

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

LeonardoE95
Copy link
Contributor

Hello there,

this PR contains the testbed for CVE-2017-12617.

@LeonardoE95
Copy link
Contributor Author

@LeonardoE95 Could you add a docker config for a secure version of tomcat?

We test the plugin against secure and insecure version of the same service, to test for false positives and false negatives.

The same Dockerfile can be built to obtain vulnerable and non-vulnerable version of the same service (Tomcat).

Specifically, to build a vulnerable service the argument CONFIG must be set to vuln as shown below

docker build --build-arg CONFIG=vuln -t tomcat-vuln .

To build a non vulnerable service instead we can omit the CONFIG arg

docker build --build-arg -t tomcat .

The idea is that by default they use the same config, but when built with the CONFIG=vuln, the config is changed to make it vulnerable.

Hope it was clear, if you need more specific deployment setup let me know and I will add it.

@maoning maoning self-requested a review December 13, 2024 18:06
@copybara-service copybara-service bot merged commit 2d0a83c into google:main Dec 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant