Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Improper Input Validation vulnerabilities in an interactive lesson.
Start learningUpgrade spatie/browsershot
to version 5.0.1 or higher.
spatie/browsershot is a library for converting a webpage to an image or pdf using headless Chrome.
Affected versions of this package 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.
http://localhost:5865/test.php?input=%20file:///etc/passwd