Information Disclosure
PreviousBusiness Logic Vulnerability (Labs: Portswigger Academy)NextInfromation Disclosure (Labs: Portswigger Academy)
Last updated
App leaks info it shouldn't, to users or attackers - aka "information leakage"
What gets leaked:
Other users' data (usernames, emails, financial info)
Business/commercial data
Technical infra details (server, framework, versions)
Often surfaces while testing something else entirely - keep an eye out even off-task
Direct leak (credit card numbers, PII) → obviously severe on its own
Technical leak (framework version, directory structure) → looks harmless, but:
Confirms attack surface for something else
Old/vulnerable framework version + public exploit = easy win
Can be the missing piece for a bigger, chained attack
Severity test: does the leaked info let you do something harmful? If not exploitable, don't over-flag it - common sense over box-ticking
Leftover internal content - dev comments, debug notes not stripped before prod
Insecure configuration - debug/diagnostic features left on, verbose default errors, unneeded features enabled
Flawed app logic - different responses for different internal states → lets you enumerate data (ties directly into username enumeration)
Fuzz parameters - throw unexpected types/fuzz strings, watch for:
Status code differences
Response length differences
Timing differences
Use Burp Intruder + grep-match/extract for error, SQL, invalid, etc.
Burp Scanner - auto-flags leaked keys, emails, card numbers, backup files, directory listings
Burp engagement tools (right-click → Engagement tools):
Search - find/negative-search any keyword
Find comments - pulls dev comments out automatically
Discover content - finds unlinked dirs/files
Force informative errors - feed invalid input on purpose, see what the stack trace/debug response gives up
Everyone on the team should know what counts as "sensitive" - non-obvious stuff leaks too
Strip dev comments before deploy (automate it in CI/QA)
Use generic error messages - don't hand attackers free clues
Disable debug/diagnostic features in production, every time
Understand the config + security implications of every third-party tool in use, turn off what you don't need
Last updated