Description
mPDF through 8.3.2 contains a server-side request forgery vulnerability that allows attackers to reach internal services by supplying gopher:// or dict:// resource URLs in rendered HTML or CSS. CurlHttpClient::sendRequest passes these URLs to cURL without setting CURLOPT_PROTOCOLS, letting attackers send chosen bytes to arbitrary hosts and ports such as Redis or Memcached.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mPDF | mPDF | 0 ≤8.3.2 | — |
References
- https://github.com/mpdf/mpdf/blob/v8.3.2/src/Http/CurlHttpClient.php#L25-L67
- https://github.com/mpdf/mpdf/blob/v8.3.2/src/File/StreamWrapperChecker.php#L22-L44
- https://github.com/mpdf/mpdf/blob/v8.3.2/src/Utils/Path.php#L32-L37
- https://www.vulncheck.com/advisories/mpdf-through-8.3.2-ssrf-via-gopher-and-dict-urls-in-curlhttpclient