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

cmd/syncthing: Enforce stricter CSRF policy on /rest GET requests (fixes #3134) #3137

Closed
wants to merge 1 commit into from

Conversation

calmh
Copy link
Member

@calmh calmh commented May 21, 2016

Purpose

This removes the ability to do "raw" GET requests to the /rest interface. All requests must be accompanied with either an API key or a CSRF token (plus authentication, if configured).

Testing

New unit test added to verify this behavior. GUI tested manually, still appears to work.

Documentation

This needs to be updated in https://docs.syncthing.net/dev/rest.html

@AudriusButkevicius
Copy link
Member

@st-review merge

@st-review
Copy link

👌 Merged as bf7fcc6. Thanks, @calmh!

@st-review st-review closed this May 21, 2016
st-review pushed a commit that referenced this pull request May 21, 2016
@AudriusButkevicius
Copy link
Member

I feel this is bad enough that we should make a v12 release too

@calmh calmh deleted the csrf branch May 21, 2016 13:50
@calmh
Copy link
Member Author

calmh commented May 21, 2016

Mmm

@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jun 16, 2017
@syncthing syncthing locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants