-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Move access_tokens out of query params (SYN-299) #1290
Comments
Jira watchers: @erikjohnston @richvdh |
(copied from SPEC-112) So, this bug had a few references to Macaroons, but I feel that none of the posts that did so explained how Macaroons help - so I'll try and do so. The really nice thing with Macaroons is that anyone can further constrain them, but nobody can remove a constraint once it's added. This allows the client to constrain the macaroon sent back to the server to a very short lifetime (on the order of seconds), while the one it actually holds may have a very long validity period indeed. If anyone sniffs the in-flight Macaroon, it will (by and large) be useless too soon to do them any good. In addition, it can be constrained to the operation in question (if Synapse supported such caveats), so the sniffed macaroon would (say) only be usable for sending messages (and not state events), or perhaps even only to a specific room. It can also be constrained to the user's external IP, which helps even more. This would (partially) resolve #1290, too, so I'm copying it there, although TBH the right solution to that is probably "Authorization: Macaroon " -- Alex Elsayed |
I believe this was fixed by #1098. |
Using access_tokens in query params is really quite insecure. We should do some combination of:
(Imported from https://matrix.org/jira/browse/SYN-299)
(Reported by @erikjohnston)
The text was updated successfully, but these errors were encountered: