BUG - Security Issue - User is able to see other users' applications
Closed this issue · 16 comments
It is possible to retrieve the details of an application from another user by simply changing the url:
- Login with BCREG0025
- https://strr-ui-dev.web.app/application-details/2
- This was an application done by BCREG0040
Hey team! Please add your planning poker estimate with Zenhub @avni-work @dimak1 @rstens @shaangill025
The 403 error message is covered in #22512. Here's the design in Figma.
Logged in as BCRE0013: https://strr-ui-dev.web.app/application-details/77 (Created by BCREG0040)
I basically see an empty screen, no error message, no feedback etc. Yes, it prevents me from reviewing somebody else's application but I think we can do better with an error message.
@andyyanggov Could you please shine your light on this one?
BTW, I see similar screen when I get a basic 404 (trying for an application which is simply not there)
I think this should be handled in a separate ticket. Basically to display/redirect to unauthorized
or not found
pages based on the API response error codes. This would need to be implemented across many other pages and not just application-details
.
Agree - New tickets to be created
Reopening this ticket as the fix is not correct.
@rstens You can verify with https://strr-ui-dev.web.app/application-details/77
- Try with user other than BCREG0040, should not be accessible
- Try with user BCREG0040 but with different profile [not smith autos]
@kris-daxiom @shaangill025 I need some clarity on this issue. I understood that Lekshmi made some changes so that information created by a user is available to all profiles to that user. Or am I mistaken?
@rstens That would be done after bcgov/STRR#152 is merged
@rstens Prior to this fix, the application created in one account was visible in another account that belongs to the same user. Applications should be visible only in the account using which it was created.
Ability to not see other account is work on top of Shaanjot's work, so Shaanjot will review this for QA.
BREG2025 [BCREG2025 Test Account] - 87, 88
BREG2023 [Business Name 1] - 84, 85
BREG2023 [test strr 1] - 86
Tested and verified.