Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 335 Bytes

File metadata and controls

16 lines (14 loc) · 335 Bytes

Problem Statement

We have a bug in our app.

The api/tasks?userId=1 is returning all tasks for all users rather than just the user with id 1 - this is a security issue.

Here is an example of what should be returned for userId=1:

[
  {
  	"id": 101,
  	"userId": 1,
  	"title": "Buy groceries",
  	"status": "TODO"
  }
]