Intent-Code Divergence
Medium
- Confidence
- 99% confidence
- Finding
- The example `IntoResponse` implementation claims internal messages are not leaked, but it serializes `self.to_string()` into the client response for every error variant, including `Sqlx` and `Other`. That can expose database details, query failures, internal service errors, or other sensitive implementation information that helps attackers enumerate internals or refine exploitation.
