Handling errors Flashcards
What can automatically generated error messages include?
They may include sensitive information about their environment, users or associated data.
Sensitive information may be valuable information on its own or it may be useful for launching other more serious attacks
Handling errors
Handling errors helps in handling software errors gracefully and helps execution to resume when interrupted
What happens in the worst-case scenarios?
The error handling mechanisms force an application to log the user off and shut down the system
What 2 ways can error messages be generated?
Externally-generated
Self-generated
Externally-generated error messages
The external environment, such as a language interpreter, handles the error and constructs its own message, whose contents are not under direct control by the programmer
Self-generated error messages
The source code explicitly constructs the error message and delivers it
What sensitive information can automatically generated error messages include
Private, personal info, such as personal messages, financial data, geographic location or contact details.
System status and environment, such as the operating system and installed packages
Business secrets and intellectual property
Network status and configuration.
The applications own code or internal state
Metadata, e.g. logging of connections or message headers
Flask error handling
Allows for custom error pages in which we can define our own error messages and therefore help prevent information leakage.