← All concepts
Information disclosure

Understanding Information disclosure

What it is

Information disclosure is the application handing out something it should have kept — a stack trace naming internal paths, a comment holding a key, a debug endpoint, a backup file left in the web root, a verbose error that confirms what an attacker guessed.

How you approach it

  1. Read everything the app gives you that it did not mean to be read — page source, response headers, error messages, files that should not be reachable.
  2. Predictable paths leak: a backup with a .bak suffix, a .git folder, a robots.txt that names what it hides, an old API version still answering.
  3. The flag is sitting in plain sight somewhere the interface never links to. Ask for it directly.

How it gets fixed

A resource that was never linked was still served, and it held a secret. Requesting the predictable path directly returned it — no exploit, only something left exposed. The fix is to remove what should not ship and to return errors that reveal nothing about internals.

Practise it

Every lab in the Information disclosure category drills exactly this. Start at Apprentice and work up.

Practise it

ApprenticeInformation disclosure

The stack trace that names the database

Find the secret the application leaks without meaning to.

10 pts · 20 minStart →
ApprenticeInformation disclosure

A backup file left in the web root

Find the secret the application leaks without meaning to.

10 pts · 20 minStart →
ApprenticeInformation disclosure

Comments in the source with a key in them

Find the secret the application leaks without meaning to.

10 pts · 20 minStart →
PractitionerInformation disclosure

Secrets committed to an exposed .git

Find the secret the application leaks without meaning to.

25 pts · 45 minStart →
PractitionerInformation disclosure

The debug endpoint still answering in production

Find the secret the application leaks without meaning to.

25 pts · 45 minStart →
PractitionerInformation disclosure

User enumeration through timing

Find the secret the application leaks without meaning to.

25 pts · 45 minStart →