vendor:
mPDF
by:
Musyoka Ian
7.5
CVSS
HIGH
Local File Inclusion
22
CWE
Product Name: mPDF
Affected Version From: mPDF 7.0.x
Affected Version To: mPDF 7.0.x
Patch Exists: YES
Related CWE:
CPE: a:mpdf:mpdf:7.0.x
Platforms Tested: Ubuntu 20.04
2022
mPDF 7.0 – Local File Inclusion
mPDF is vulnerable to Local File Inclusion (LFI) vulnerability. An attacker can exploit this vulnerability to read sensitive files from the server. The attacker can craft a malicious payload and send it to the vulnerable server. The payload contains the file name which the attacker wants to read from the server. The attacker can also use the base64 encoded payload to bypass the security filters. The attacker can also use the URL encoded payload to bypass the security filters.
Mitigation:
The user should always use the latest version of mPDF and should not use the vulnerable version. The user should also use the security filters to prevent the malicious payloads from reaching the server.