Skip to content
Info disclosure Write-up Intermediate

Exposed Laravel Debug Page Leads to Unauthenticated Admin Takeove

A Laravel debug page exposed on a production server revealed that Laravel Telescope was running and publicly accessible without authentication. An attacker could read request logs and emails to obtain an admin's password reset token or session cookie, leading to account takeover.

Ramadhan Alfatih Follow

Published on medium.com

Belakangan ini timeline saya diramaikan dengan berita pembukaan rekrutmen SPPI untuk program Koperasi Merah Putih. Iseng, suatu sore saya buka browser dan mulai lihat-lihat aplikasi webnya: sppi-kdkmp.id, platform yang mengurus proses pendaftaran Sarjana Penggerak Pembangunan Indonesia.

Ramadhan Alfatih, 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 the production server had APP_DEBUG=true and APP_ENV not set to production, which disabled Telescope's authorization gate and exposed sensitive debugging data.

Impact

An attacker could take over the admin account by using the exposed reset token or session cookie, gaining full access to the recruitment system and the personal data of over 92,000 applicants.

What the attacker needed

A normal user account; access to the internet

The fix

The vulnerability was fixed; /telescope now returns 403, and the report recommends setting APP_DEBUG=false and APP_ENV=production, plus restricting access to Telescope.

How it was found

  1. Access a protected route as a normal user to trigger a Laravel debug page.
  2. Notice Telescope queries in the debug output and visit /telescope, which opens without authentication.
  3. In Telescope's Requests section, find an admin request containing the admin's email address.
  4. Trigger a password reset for that admin email.
  5. Refresh Telescope's Mail section to read the password reset email and its token.

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.

The website was set up to show detailed error messages and a debugging dashboard to anyone, even though it was live. This dashboard recorded everything, including emails sent by the system. By triggering a password reset for the admin and then reading the email in the dashboard, the researcher could have taken over the admin account.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.