API Testing · Middle · Question 26 of 75

Why is a database error message in an API response a security finding?

Show the answer

Correct answer: It reveals internals that help attackers

Explanation

Table names, SQL and stack traces should go to logs, not clients. The client gets a generic message and a correlation ID.

Further reading

Problem with a question

API Testing · Middle · question 26

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz