Skip to content
XSS Write-up Intermediate

The Great Laravel Heist: One Click Could Give Hackers The Keys To

Three vulnerabilities in the Laravel Voyager admin package can be chained: an XSS in the Compass component, a file upload flaw that lets attackers upload PHP files disguised as images, and a path traversal issue that allows reading or deleting files. An attacker who convinces an admin to click a link could achieve remote code execution on the server.

Hayden Baillio Follow

Published on medium.com

Remember when you thought picking the most-starred Laravel admin panel was playing it safe? SonarSource’s security team would like a word.

Hayden Baillio, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely insufficient input sanitisation in the Compass component, inadequate file type validation in the media upload, and loose path validation in the file system component.

Impact

An attacker could chain the three flaws to achieve remote code execution on the server after an admin clicks a crafted link, and the vulnerabilities remain unpatched as of 2025.

What the attacker needed

Voyager admin package installed; admin clicks a crafted link; attacker can upload files

The fix

The vulnerabilities should be fixed by properly sanitising input, validating uploaded file types, and enforcing strict path validation, but the maintainers have not patched them.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is about a popular add-on for the Laravel web framework called Voyager, which provides an admin panel. Three separate security mistakes in it can be combined: one lets a malicious link run code in the admin's browser, another lets someone upload a harmful file that looks like an image, and a third lets someone read or delete files on the server. Together, an attacker who tricks an admin into clicking a link could take full control of the server.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Hayden Baillio

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.