PT-2023-2176 · Laravel+3 · Laravel+3

Nightfury99

+1

·

Published

2023-03-17

·

Updated

2023-09-20

·

CVE-2023-28115

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Snappy versions prior to 1.4.2
Description The issue is related to PHAR deserialization due to a lack of checking on the protocol before passing it into the file exists() function. If an attacker can upload files of any type to the server, they can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution, especially when Snappy is used with frameworks with documented POP chains like Laravel/Symfony vulnerable developer code. If a user can control the output file from the generateFromHtml() function, it will invoke deserialization. The estimated number of potentially affected devices worldwide is not specified. There is no information about real-world incidents where this issue was exploited.
Recommendations For Snappy versions prior to 1.4.2, update to version 1.4.2 or later to resolve the issue. As a temporary workaround, consider restricting access to the generateFromHtml() function to minimize the risk of exploitation. Additionally, restrict the ability to upload files of any type to the server to prevent potential attacks.

Exploit

Fix

RCE

Deserialization of Untrusted Data

Weakness Enumeration

Related Identifiers

BDU:2023-01918
CVE-2023-28115
GHSA-92RV-4J2H-8MJJ
GHSA-GQ6W-Q6WH-JGGC

Affected Products

Debian
Laravel
Snappy
Symfony