CVE-2018-19047

mPDF through 7.1.6, if deployed as a web application that accepts arbitrary HTML, allows SSRF, as demonstrated by a '<img src="http://192.168' substring that…

published November 7, 2018

CVSS
—
EPSS
2%
Percentile
81.4
In the wild
Unconfirmed
What it is

⚠️ An unsuspecting HTML tag could open the door to a sneaky server-side request forgery (SSRF)! This vulnerability lurks in mPDF versions up to 7.1.6, allowing a crafty attacker to exploit it with just a simple image tag. 🔥 Think of it like putting a pizza order form in a customer's hands without any instructions. If they write down 'send to the kitchen next door,' guess what? That order could go anywhere! Here, mPDF trusts user input without any filtering, which leads to potential mischief. An attacker could manipulate the HTML to send requests to internal services, revealing sensitive information or even controlling the server's behavior. It's like letting someone poke around your office using permission slips that never get checked!

Put simply

Think of it like putting a pizza order form in a customer's hands without any instructions. If they write down 'send to the kitchen next door,' guess what? That order could go anywhere! Here, mPDF trusts user input without any filtering, which leads to potential mischief. This SSRF vulnerability occurs because mPDF allows users to submit arbitrary HTML, which can trigger requests to internal resources via an unfiltered image tag. Specifically, the `getImage` function in Image/ImageProcessor.php is vulnerable to exploitation.

What to do

An attacker could manipulate the HTML to send requests to internal services, revealing sensitive information or even controlling the server's behavior. It's like letting someone poke around your office using permission slips that never get checked! To protect against this, sanitize all user input, especially any HTML submissions. It's also wise to upgrade to the latest version of mPDF and implement a robust content security policy. Don't let unchecked inputs run amok! You can tackle this! By sanitizing inputs and keeping mPDF up to date, you’ll shield your application from potential threats. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02084 · 81.4th percentile
Published
2018-11-07T05:00Z
EPSS history
Timeline
  • 07 NOV 05:00Z
    mPDF through 7.1.6, if deployed as a web application that accepts arbitrary HTML, allows SSRF, as demonstrated by a '<img src="http://192.168' substring that…
    cvelistv5