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

Programs and Model data accessible within public access #43

Open
huuaho opened this issue Jul 12, 2023 · 0 comments
Open

Programs and Model data accessible within public access #43

huuaho opened this issue Jul 12, 2023 · 0 comments

Comments

@huuaho
Copy link
Contributor

huuaho commented Jul 12, 2023

The file here https://github.com/CBIIT/bento-RI-backend/blob/master/src/main/resources/graphql/bento-extended-public-es.graphql

has defined the PublicGlobalSeach to include the model and programs content. This creates a vulnerability where, someone could write a query to access the data despite not having proper access.

To recreate the issue use this provided graphQL query

query PublicGlobalSearchQuery($input: String, $first: Int, $offset: Int) { publicGlobalSearch(input: $input, first: $first, offset: $offset) { about_count programs{ program_name } model{ type node_name } } }

pointed to this endpoint

https://bento-qa2.bento-tools.org/v1/public-graphql/

Your query variable could be
"input"="a"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant