The most common web weakness is the simplest: the server looks up a record by the id in the request and hands it back without checking who is asking. Change the id in the address and you read someone else's data. OWASP calls this Broken Access Control (A01:2025); the pattern is an insecure direct object reference, CWE-639.
The fix is one comparison. After you load the record, check that it belongs to the signed-in caller before you return it. Refuse with 403 when it does not. The hard part is remembering to do it on every endpoint that loads a record, and keeping the owner's own request working. In these labs the caller is already signed in, in request.session; the record carries the id of its owner.
Load the record, then refuse it when the signed-in caller is not its owner.