Attacks and Exploits

A mobile app calls an API endpoint that returns the tester's own full user record, including password hashes and internal flags, though the app shows only the name. Which API weakness does this show?

Show the answer

Correct answerA. Excessive data exposure

AWhy this is right: The response returns sensitive fields the client does not need, trusting the app to filter them.

BWhy not this: Session hijacking steals a valid session token; no token is taken here.

CWhy not this: IDOR requires accessing another user's object by changing an identifier; only the tester's own record is returned.

DWhy not this: Mass assignment involves a client setting extra fields in a request; this case is about response content.

The API sends far more data than the client needs and relies on the app to hide it, which is excessive data exposure. Mass assignment concerns writing extra fields in a request, not reading extra fields in a response.