-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
API accepts all methods #2165
Comments
More discussion on this can be found in #1532 |
This is something different. Any API call making changes/writes shouldn't be allowed for GET. Allowing CORS for global gateway is also a problem but slightly different one. |
I get an http 403. Do you have your cors headers set to '*' or similar? |
Probably he has but it is still an issue as you can have trusted domain (like ipfs-board's one) added to CORS but 3rd party might include image that will perform API call. |
(with @whyrusleeping) we should disallow some of the calls through GET requests from the start and be very explicit on which type of method are accepted by API endpoint, in order to avoid confusion and security holes. @RichardLitt take a peak in this one, the HTTP API spec will certainly help on this one :) |
We have switched to POST only. |
During a discussion on IRC with VegemiteToast and achin, it was tested and discovered that you can make a user pin any file.
This particular attack was done using
QmfSeZGwcCJjeEiMziQtDEuaoKASmUV48NCaPde3q44fUb
As it turns out, the API accepts any command with any HTTP method.
Test it out:
The text was updated successfully, but these errors were encountered: