PT-2023-1353 · Php+2 · Php+2

Ry0Tak

·

Publicado

2023-02-07

·

Atualizado

2023-02-16

·

CVE-2023-24813

CVSS v3.1

10

Crítica

VetorAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Dompdf versions prior to 2.0.3
Description The issue arises from the difference in attribute parsing between Dompdf and php-svg-lib, allowing an attacker to call arbitrary URLs with arbitrary protocols. Dompdf respects the xlink:href attribute even if the href attribute is specified, while php-svg-lib parses the href attribute. This discrepancy enables an attacker to bypass protection by providing an empty xlink:href attribute. In PHP versions before 8.0.0, this can lead to arbitrary unserialize, resulting in arbitrary file deletion and potentially remote code execution, depending on available classes.
Recommendations For Dompdf versions prior to 2.0.3, upgrade to release version 2.0.3 or later to address the vulnerability. As a temporary workaround, consider restricting the use of SVG files in Dompdf until the issue is resolved. Avoid using the href attribute in image tags with both xlink:href and href specified to minimize the risk of exploitation.

Exploit

Correção

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

BDU:2023-00666
CVE-2023-24813
GHSA-56GJ-MVH6-RP75

Produtos afetados

Dompdf
Php
Php-Svg-Lib