Vulnerability in Browsershot Before 5.0.1 Allows Local File Inclusion
CVE-2024-21544

7.7HIGH

Key Information:

Vendor

spatie

Vendor
CVE Published:
13 December 2024

What is CVE-2024-21544?

The Spatie Browsershot library prior to version 5.0.1 is affected by a vulnerability related to improper input validation in the setUrl method. This flaw allows an attacker to exploit the URL handling by appending leading whitespace characters (%20) before the file:// protocol. As a result, this can lead to Local File Inclusion, enabling the attacker to access and read sensitive files stored on the server. Proper validation and sanitization of input data are crucial to mitigate such risks and protect against unauthorized data exposure.

Affected Version(s)

spatie/browsershot 0 < 5.0.1

References

CVSS V4

Score:
7.7
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Muhammad Firdaus Amran
.