Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RBAC] User kicked out when accessing a forbidden resource #8748

Open
Lhorus6 opened this issue Oct 23, 2024 · 2 comments
Open

[RBAC] User kicked out when accessing a forbidden resource #8748

Lhorus6 opened this issue Oct 23, 2024 · 2 comments
Labels
bug use for describing something not working as expected rbac Linked to RBAC and ACL systems
Milestone

Comments

@Lhorus6
Copy link

Lhorus6 commented Oct 23, 2024

Description

I created a user who can only access a TAXII collection in order to share data. I have a Role containing only one capability: Access Data Sharing (and nothing else).

  • He can access the TAXII collection, as desired
  • But it can also access the interface. This isn't a problem, because he can't see anything.

However, he can click on the “Data > Data sharing” menu.

image

When he does this, two problems arise:

  1. He sees the page for a quarter of a second, and therefore sees the existing Live streams (which shouldn't be possible).
  2. It is thrown out of the platform rather than getting a “you are not authorized to access this screen” error message.

Environment

OCTI 6.3.6

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Create a user part of a group with all markings and with a role containing only "Access data sharing"
  2. Log on to the platform with this user and try to access the “Data > Data sharing” page.

Expected Output

No “Data > Data sharing” button at all

OR

Have it but:

  • No page preview for a quarter of a second
  • Get an error message rather than getting thrown out

NB: Even better would be not to be able to log in to the interface ;)

@Lhorus6 Lhorus6 added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Oct 23, 2024
@nino-filigran
Copy link

For me the fix is:

  • do not log out user
  • ability to view the menu data sharing
  • ability to access any pages within data sharing WITHOUT the ability to manage any feeds, taxii collection.

Ok with this @romain-filigran ?

@nino-filigran nino-filigran added rbac Linked to RBAC and ACL systems and removed needs triage use to identify issue needing triage from Filigran Product team labels Oct 24, 2024
@nino-filigran nino-filigran added this to the Bugs backlog milestone Oct 24, 2024
@romain-filigran
Copy link
Member

Yes @nino-filigran , it makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected rbac Linked to RBAC and ACL systems
Projects
None yet
Development

No branches or pull requests

3 participants