Middleware Insecure
vmitchell85 opened this issue · 0 comments
vmitchell85 commented
The middleware merged in #66 only checks the user's current team not the team that is currently being loaded on the page.
Steps to replicate:
- Create a user (user A) and a team
- Create another user (user B)
- Protect the
members/{id}
route with theteamowner
middlware - Acting as user B try to access the
members/1
route that is owned by user A