-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cross-Origin scripts can access data without restrictions #89
Comments
I believe we need the equivalent of this Origin check: https://github.com/solid/solid-permissions/blob/v0.5.2/src/permission-set.js#L396 Note: We had a similar problem in node-solid-server (nodeSolidServer/node-solid-server#526), but the cause was different (it occurred with OIDC-based authentication). |
Well, you get what you ask for.
These headers from the server say that the client origin is explicitly trusted. We can't get upset about cross-origin access when the browser goes to huge lengths to block it, and we have gone to even huger lengths to open it up again. Protection against this attack is built into the browser. Browser security is based on the Same Origin Model... if we want to tweak that we do it carefully but maybe not reinvent it. we have origin reflector code in the server specifically to give all origins ability to access data. We turned that on, to fix this we turn it off (work break warp etc) or make it speific to origins we trust. |
I think the reasoning is that: yes, we open up cross-origin requests, but we shield it off with another mechanism. I.e., when a user is not allowed to perform an operation, we want to be able to reply with 401/403, not with “cross-origin request blocked”. |
After login in on user.databox.me any page the user subsequently visits has full access to the user's data and can also add data to the user's LDPCs.
Steps to reproduce:
https://beta.databox.me/profile/card#me, the password is
tester.
Expected results:
Actual results
The text was updated successfully, but these errors were encountered: