Intent-Code Divergence
Medium
- Confidence
- 96% confidence
- Finding
- The example claims internal error details are never returned to clients, but the response body always uses self.to_string(), including for AppError::Sqlx and AppError::Other. That can leak database errors, stack-context messages, or other internal implementation details that help attackers enumerate schema, dependencies, or failure modes.
