Laravel Horizon Exposure

Easy

Checks whether the Horizon queue dashboard or its API is readable without signing in.

Estimated fix time: 10 minutes

What this check looks for

StackShield requests the Laravel Horizon dashboard at /horizon and its statistics API without signing in, and checks whether either one answers with real Horizon content. A 403 means Horizon is installed and its gate is doing its job.

Why it matters

Horizon shows every queued, completed and failed job with its full payload. Payloads carry whatever your jobs were given: user records, email contents, API tokens, signed URLs. The dashboard also lets the visitor retry and delete jobs. Horizon lets everyone in when APP_ENV is local, so a production server with the wrong environment value has an open dashboard without anyone having changed the gate.

What a failed check means

Anyone who visits /horizon can read your job data. Define the viewHorizon gate in HorizonServiceProvider so only named users pass, and confirm APP_ENV=production.

This check is paired with the scanner package's inside view, which reports whether a production gate is configured. If your code says the gate is there and this check still fails, StackShield raises the disagreement as a mismatch.

Automatically detect this issue

StackShield can automatically scan your Laravel application for this security issue and alert you when it's detected.

Start Free Trial
Was this guide helpful?