Advisory

GHSA-g2r4-phv7-5fgv

Also known as: CVE-2024-21544

Summary

Browsershot Local File Inclusion

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-12-13 06:30 UTC
Modified
2025-02-04 17:35 UTC

Affected packages and fixes

spatie/browsershot

Packagist · All systems

Affected

  • introduced 0, fixed 5.0.1 (ecosystem)

Fixed versions

5.0.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences