Handling errors Flashcards

1
Q

What can automatically generated error messages include?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Handling errors

A

Handling errors helps in handling software errors gracefully and helps execution to resume when interrupted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens in the worst-case scenarios?

A

The error handling mechanisms force an application to log the user off and shut down the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What 2 ways can error messages be generated?

A

Externally-generated
Self-generated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Externally-generated error messages

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Self-generated error messages

A

The source code explicitly constructs the error message and delivers it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What sensitive information can automatically generated error messages include

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Flask error handling

A

Allows for custom error pages in which we can define our own error messages and therefore help prevent information leakage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly