Version
v4
Severity
High
Suggested Priority
High
Observed Behaviour
While logged in on any account, through API requests, we can see other user's bookings and details.
Expected Behaviour
Users should only access their own account data and should not be able to see other account details and bookings
Reproduction Steps
- Make sure app.py is running
- Sign up/Log in with any valid account.
- On browser, type;
http://127.0.0.1:5001/api/accounts/1
api/accounts/* <--- any valid userID number on database starting from 1 and onwards.
- Inspect the outcome
Version
v4
Severity
High
Suggested Priority
High
Observed Behaviour
While logged in on any account, through API requests, we can see other user's bookings and details.
Expected Behaviour
Users should only access their own account data and should not be able to see other account details and bookings
Reproduction Steps
http://127.0.0.1:5001/api/accounts/1
api/accounts/* <--- any valid userID number on database starting from 1 and onwards.