-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
Don't show foreign key links to tables the user cannot access #2178
Comments
Relevant code: datasette/datasette/views/table.py Lines 1132 to 1149 in fbcb103
Which calls this undocumented method: Lines 938 to 973 in fbcb103
|
Should I put the permission check in that undocumented |
To test that locally, use this YAML instead: databases:
content:
allow:
id: root
tables:
releases:
allow: true And: allow:
id: root
databases:
content:
tables:
releases:
allow: true |
Spotted this problem while working on this plugin:
It's possible to make a table public to any users - but then you may end up with situations like this:
That table is public, but the foreign key links go to tables that are NOT public.
We're also leaking the names of the values in those private tables here, which we shouldn't do. So this is a tiny bit of an information leak.
Since this only affects people who have configured a table to be public that has foreign keys to a table that is private I don't think this is worth issuing a vulnerability report about - I very much doubt anyone is running Datasette configured in a way that could result in problems because of this.
The text was updated successfully, but these errors were encountered: