cve/2024/CVE-2024-21544.md
2025-09-29 16:08:36 +00:00

18 lines
905 B
Markdown

### [CVE-2024-21544](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21544)
![](https://img.shields.io/static/v1?label=Product&message=spatie%2Fbrowsershot&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=0%3C%205.0.1%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Improper%20Input%20Validation&color=brighgreen)
### Description
Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method.
An attacker can exploit this vulnerability by using leading whitespace (%20) before the file:// protocol, resulting in Local File Inclusion, which allows the attacker to read sensitive files on the server.
### POC
#### Reference
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745
#### Github
No PoCs found on GitHub currently.