Local File Inclusion path bypass
路径遍历 / 违反安全设计原则(按标题归类) / #147570
该报告还没有中文解读。
原文摘录
摘自原文(870 字符中的一小部分)
After reading egix's report #59665 and seeing your fix at https://github.com/concrete5/concrete5/commit/19d0cc81c7cd485b856289ac71ebc0389ea7c3da & https://github.com/concrete5/concrete5/commit/c646dd0defcfa79ef119dca8ba1beba2c5bc91ea I think the fixes are insufficient to stop lfi.
原文中的代码
$path = $request->getPathInfo();
$path = rawurldecode($request->getPathInfo());
if (substr($path, 0, 3) == '../' || substr($path, -3) == '/..' || strpos($path, '/../') ||
substr($path, 0, 3) == '..\\' || substr($path, -3) == '\\..' || strpos($path, '\\..\\')) {默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Concrete CMS 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @paulos__ · 版权归作者与 Concrete CMS 所有