In a distributed system, an attacker exploits an API endpoint that returns detailed error messages. Which security principle does this most directly violate, and what is the best practice fix?

Answer

Information hiding; reduce error detail returned to clients

Explanation

Detailed errors leak internal structure that helps attackers craft payloads. Reducing client-visible detail while logging specifics internally limits attacker leverage.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list