Skip to content
Info disclosure Write-up Beginner

How i found my first 318.39$ bugs!

A development subdomain exposed a Laravel debug bar and a directory listing that revealed application paths and source code. The same subdomain's source code contained hard-coded third-party API credentials, which the author used to add records to an index.

cyberbh Follow

Published on cyberbh.medium.com

Hello everyone i hope you are doing great πŸ’– My name is Mohammed, I am a cybersecurity enthusiast and a CTF Player; In this blog i am going to show you how did i approach to find my first 2 reported vulnerabilities. β€œNote: this writeup have been written in a simple way.”

Msecurity BH, on cyberbh.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 a development environment was deployed with debug mode enabled and without access controls, and secrets were embedded in client-side code.

Impact

An attacker could view internal application details and use the exposed API credentials to add, update, delete, or extract data from the third-party index.

What the attacker needed

Dev subdomain is publicly reachable; debug mode is enabled; no authentication on dev subdomain

How it was found

  1. Enumerate subdomains and find the dev subdomain.
  2. Open the dev subdomain and notice a debug bar at the bottom corner.
  3. Click the debug bar to view framework version, logs, and request details.
  4. Visit the /home path to see full file paths and application code.
  5. View the page source and find hard-coded API credentials.
  6. Use a curl request with the credentials to add records to the third-party service.

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.

A development version of a website was left online with debugging tools switched on. Those tools showed internal file paths and code, and the page's source code also contained secret keys for another service. Anyone who found the page could read that information and use the keys.

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.