Report Heading by 
1017 | ```
1018 |
1019 | >Identify file download HTML-to-PDF convert function on target is vulnerable.
1020 |
1021 | ```JavaScript
1022 |
1025 | ```
1026 |
1027 | >Libraries used to convert HTML files to PDF documents are vulnerable to server-side request forgery (SSRF).
1028 |
1029 | [PortSwigger Research SSRF](https://portswigger.net/daily-swig/ssrf)
1030 |
1031 | >Sample code below can be injected on vulnerable implementation of HTML to PDF converter such as wkhtmltopdf to read local file (SSRF).
1032 |
1033 | ```html
1034 |
1035 |
1036 |
1044 |
1045 |
1046 | ```
1047 |
1048 | >JSON POST request body containing the HTMLtoPDF formatted payload to read local file.
1049 |
1050 | ```JSON
1051 | {
1052 | "tableHtml":"