information disclosure
Letting someone read data they should not see, such as another customer's order, internal error details or a secret printed into a log.
Leaked internals give attackers a map of the system and sometimes credentials.
In more detail
Return generic messages for unexpected errors and keep diagnostic detail in server logs, linked by a trace identifier. Responses should contain only named public fields, never whole database rows or internal exception text.
Example
In this course it shows up as broken object level authorization, secrets in logs and error pages, and responses that return whole database rows instead of named public fields.Related terms
- Problem Details — A standard JSON shape for HTTP error responses, defined in RFC 9457, with members such as type, title, status, detail and instance.
- stack trace — The list of function calls that were running when an error happened, printed to help a developer find where it came from; Python calls it a traceback.
- health check — A regular automated test of whether a program or service is working, such as a request to its health endpoint or a command run inside its container.
- STRIDE — A threat-modelling checklist of six threat types: Spoofing, Tampering, Repudiation, Information disclosure, Denial of service and Elevation of privilege.
- broken object level authorization — An API flaw where changing an identifier in a request, such as /tasks/2 instead of /tasks/1, lets a caller reach an object that belongs to someone else.
- redaction — Removing or hiding sensitive values, such as tokens or personal data, before data is logged, displayed or shared.
Taught in
- Global Exception Handling and Problem Details — Modern .NET Core, C# & Enterprise Microservices
- Health Checks — Modern .NET Core, C# & Enterprise Microservices
- The Threat Model Habit — Application Security & Threat Modeling for Engineers
- Why Secrets Leak — Application Security & Threat Modeling for Engineers
- Broken Object Level Authorization — Application Security & Threat Modeling for Engineers
- Mass Assignment — Application Security & Threat Modeling for Engineers