[buttle] Path traversal in mid-buttle module allows to read any file in the server.
该报告还没有中文解读。
原文摘录
摘自原文(1986 字符中的一小部分)
I would like to report path traversal in buttle module It allows me to read any file in the server if i know the path.
原文中的代码
var url = req.url;
if(/\.md$/i.test(url) || /\.markdown/i.test(url)) {
fs.exists(j(dir, url), function(exists) {
if(exists) {
fs.readFile(j(dir, url), {encoding: 'utf8'}, function(err, data) {
if(err) { return res.end(err.message); } …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Node.js third-party modules 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @n0n4me · 版权归作者与 Node.js third-party modules 所有