Pixel flood attack cause the javascript heap out of memory
该报告还没有中文解读。
原文摘录
摘自原文(2005 字符中的一小部分)
I would like to report Pixel flood attack in jimp It allows flooding the memory and causing DoS by uploading a crafted image (5kb image), and the Jimp module will tries to allocate 4128062500 pixels into memory.
原文中的代码
var Jimp = require('jimp');
Jimp.read('lottapixel.jpg', (err, lenna) => {
if (err) throw err;
lenna
.resize(256, 256) // resize
.quality(60) // set JPEG quality
.greyscale() // set greyscale
.write('image-small-bw.jpg'); // save
});默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Node.js third-party modules 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @mayaseven · 版权归作者与 Node.js third-party modules 所有