Skip to content

Bug class · Beginner

Information disclosure

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

median public bounty
$560

Covers CWE 200, 201, 209, 215, 359, 497, 532, 538, 548, 552.

How it works

Full lesson

The pattern behind every report in this class.

Information disclosure is when a system reveals data to someone who should not have it. In bug bounty terms it covers a wide range: a web server advertising its exact version in a response header, a directory listing that exposes backups, a debug page that prints configuration, an API that returns another user's data, or a parser that reads past the end of a buffer and returns leftover memory. The reports behind this lesson span all of these, from simple header leaks to memory corruption in document readers and kernel components.

Programs care because disclosure is often the first step of a larger attack. Version banners and error pages tell an attacker which exploits to try. Leaked credentials, tokens or configuration give direct access. Leaked memory addresses defeat address space layout randomisation, and leaked heap contents can expose secrets or pointers. Even when a single leak looks minor, it can be chained with another bug, so triagers treat it seriously when the data is genuinely sensitive.

It turns up almost everywhere: web roots with dotfiles, configuration files, directory listings and debug pages; response headers; unauthenticated API endpoints and servlets; cloud storage buckets with public listing; mobile logs and sharing surfaces; and native code such as PDF, image, font and Office parsers, kernel and graphics components, and network services. The common thread is a missing check, a missing initialisation, or a missing authorisation decision.

At the web layer the mechanism is usually a missing access decision. An endpoint, servlet or file is served without authentication or authorisation, so requesting it directly returns data. This includes download and report servlets in management consoles, API endpoints with no auth check, and files such as dotfiles, configuration files, backups and exports left in the web root. Directory listing turns a folder into an index of everything inside it.

Things to try

All 6,337

Each line worked in a disclosed report. Test only what a program's scope allows.

Other 1352

  • Post markup in a comment field and check whether it is stored and rendered without encoding.
  • Extract downloaded plugin archives and search them for licence keys and API tokens.
  • Fetch a public front-end form that renders a post-object or relationship field, extract the per-field nonce, then call the unauthenticated AJAX query handler as a logged-out visitor to list and keyword-search draft and private post titles.
  • Create a hidden or private forum with a topic and reply, then request the topic and reply by ID from the core REST single-item endpoint as an unauthenticated client and compare with the collection endpoint and front-end permalink.

Kernel and driver memory disclosure 620

  • Trigger kernel error messages from a local low-privileged context and check whether they include kernel memory addresses.
  • Set a phpinfo variable such as the script name to an integer and read back leaked heap memory from the output.
  • With local code execution, run a crafted application that drives Windows Error Reporting file operations and look for uninitialised memory.
  • With code execution already present, run a crafted application against Windows Error Reporting and check for uninitialised memory disclosure.

Browser engine memory disclosure 490

  • Visit a crafted page in a browser and check whether mishandled objects leak memory contents.
  • Probe for information leaks in core, select, V8, frames, service worker and paint components.
  • Visit a crafted page that exploits a type confusion or out-of-bounds read in Microsoft Edge or Internet Explorer to disclose memory.
  • Lure a user to a crafted page and check whether the browser engine leaks memory contents through mishandled objects.

Directory listing and exposed files 418

  • Request the WordPress uploads directory and check whether directory listing exposes files and personal information.
  • Request wp-config.php directly on a WordPress site and check whether the web server serves it instead of blocking access.
  • Test WordPress plugin file-download flaws that let you fetch the configuration file, then use the database credentials it contains.
  • Read wp-config.php on a WordPress host and check whether database credentials are stored in plaintext and whether user passwords are unsalted MD5 hashes.

Server banners and error pages 405

  • Request theme and include files directly and look for error messages that print the installation path.
  • Request plugin PHP files directly and look for PHP errors that print the full path and the account the site runs under.
  • Call admin-ajax actions whose names are predictable hashes of the site URL and retrieve the active plugin list and versions.
  • Ask the XML-RPC endpoint to list its available methods and test whether pingback can be used to make the site send requests elsewhere.

Bypasses and variations

All 254
  • Leaked kernel addresses were used to defeat kernel address space layout randomisation.
  • Reaching restricted paths through the server IP address instead of the hostname bypassed hostname-based access rules.
  • Filter bypass and path traversal in a report servlet reached files that normal requests could not.
  • Trigger a GET-based plugin connection test through cross-site request forgery against an authenticated user.
  • Reach the same hidden title through a different email path after the invitation email was fixed.
  • Have a victim client connect to a rogue MySQL server and run any query, then send a server-initiated LOCAL INFILE request for a chosen file.

Typical fixes

All 551
  • Add bounds checks before reading network, file or device supplied data so parsers cannot read past allocated buffers.
  • Validate and bound data read by document parsers.
  • Validate the size and offset of user-supplied data against the buffer before reading.
  • Initialise and restrict kernel memory objects before returning them to user mode.
  • Properly initialise, validate and bound memory objects in browser components.
  • Validate size and structure of user-supplied data before reading.

Tips for beginners

All 12
  • Start with the obvious and cheap: read response headers, request common sensitive paths such as dotfiles and configuration files, and check whether directory listing is on. These are quick to test and easy to demonstrate, but only report them if the data is genuinely sensitive and the asset is in scope.
  • Before testing anything, read the program's scope and rules. A version banner on an out-of-scope host, or a directory listing of public marketing assets, is not a valid finding. Many disclosure reports are closed as out of scope or no impact for exactly this reason.
  • When you find a leak, show what an attacker gains. A header that reveals a version is weak on its own; tie it to a known vulnerability or show that the same host exposes more. A directory listing is stronger when it contains backups, source or exports. A debug page is stronger when it prints credentials or keys.
  • Test unauthenticated access to endpoints directly rather than through the UI. Servlets, report downloads and API routes often have no auth check even when the surrounding console does. Try the endpoint without a session and compare the response.
  • For APIs, look for fields and records that should be filtered. Check whether visibility settings apply to every field and result, and whether querying a different endpoint or parameter returns data the main view hides. Compare responses across roles and across endpoints.
  • For native targets, focus on parsers that handle complex formats: PDF, images, fonts, Office documents, CAD and 3D files. Crafted length, offset or dimension fields are the usual trigger. Watch for crashes that suggest an out-of-bounds read, and check whether output contains memory contents.

Start here: a reading path

Open the path

Clear reports in order, easiest first.

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on Info disclosure, from around the web.

Newest reports

All 8,704

Most recently disclosed.

New Info disclosure reports by email

Follow Info disclosure and get each week's new disclosures in one short email.

Free. New reports for what you follow, weekly by default. One-click unsubscribe. Privacy