Skip to content

Malicious create request returns other users data #407

@duckblaster

Description

@duckblaster

Describe the bug

If you set up personal table authentication as described in the documentation and send a create request with the item id set to an existing item belonging to another user, it will return a conflict response including the data belonging to the other user.

To Reproduce

Steps to reproduce the behavior:

  1. Create a server following the tutorial
  2. As user A, send a create request
  3. As user B, send a create request using the same item id as step 2
  4. User B sees the contents of the item created by user A in the conflict response

Expected behavior

Some other error that doesn't include the entity data

What platforms?

  • Server:

    • Version of dotnet being used to compile? 9.0
    • Library versions? 9.05
    • What database are you using? EF Core
    • Where are you running the server? Visual Studio/Windows
    • GitHub repository containing the code (optional, but helps!)
  • Client: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Requires TriageThis issue has not been checked by the project team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions