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

18 lines
961 B
Markdown

### [CVE-2024-21549](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21549)
![](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.3%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.3 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file.
**Note:**
This is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).
### POC
#### Reference
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023
#### Github
No PoCs found on GitHub currently.