Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The login example returns the full `user` record to the client after authentication, and the preceding query loads the record directly from the database without removing sensitive fields. In common schemas this includes `password` or password hash data, which creates unnecessary secret exposure and can enable credential cracking, reuse attacks, or broader account compromise.
