PT-2018-14766 · Mpdf · Mpdf
Maplebluexo
·
Published
2018-11-07
·
Updated
2024-08-05
·
CVE-2018-19047
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
mPDF versions prior to 7.1.7
Description
The issue allows for Server-Side Request Forgery (SSRF) if mPDF is deployed as a web application that accepts arbitrary HTML. This can be demonstrated by an
<img src="http://192.168> substring that triggers a call to getImage in Image/ImageProcessor.php. It is worth noting that the software maintainer disputes this issue, stating that allowing users to pass HTML without sanitizing it is inherently problematic.Recommendations
For mPDF versions prior to 7.1.7, as a temporary workaround, consider sanitizing all user-provided HTML to prevent SSRF attacks. Restrict access to the
getImage function in Image/ImageProcessor.php to minimize the risk of exploitation. Avoid using the src attribute in the <img> tag in the affected API endpoint until the issue is resolved.Exploit
Fix
SSRF
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Mpdf