Path Traversal in writeFile via Unsafe Prefix Containment Check Allows Out-of-Directory Writes
该报告还没有中文解读。
原文摘录
摘自原文(2875 字符中的一小部分)
Summary: `protodump` uses descriptor-controlled paths (`name/go_package`) in output filename construction and then enforces containment with a lexical `strings.HasPrefix` check after `EvalSymlinks`. That check is bypassable with `../` traversal into existing prefix-matching sibling directories, …
原文中的代码
name = b'../out_pwn/evil.proto'
with open('/tmp/evil.bin', 'wb') as f:
f.write(bytes([0x0a, len(name)]) + name + b'\x00')默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 arkadiyt-projects 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @tipsen · 版权归作者与 arkadiyt-projects 所有