Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Un-authable membership events can corrupt HS room state (SYN-735) #1571

Closed
matrixbot opened this issue Jul 22, 2016 · 8 comments
Closed

Un-authable membership events can corrupt HS room state (SYN-735) #1571

matrixbot opened this issue Jul 22, 2016 · 8 comments
Labels
z-bug (Deprecated Label)

Comments

@matrixbot
Copy link
Member

See https://vector.im/develop/#/room/!DgvjtOljKujDBrxyHk:matrix.org/$1469181498665GNapO:kolm.io for scrollback of me trying to figure out why Yaniel can't speak in Matrix HQ.

Matrix.org seemed to get a consistent membership event for him but his HS is having none of it and will not let him join nor leave. I see a lot of the classic, "Event content has been tampered, redacting" log lines on both servers (and not for the un-authable event).

(Imported from https://matrix.org/jira/browse/SYN-735)

(Reported by @dbkr)

@matrixbot
Copy link
Member Author

Jira watchers: @dbkr @richvdh

@matrixbot
Copy link
Member Author

matrixbot commented Jul 22, 2016

Links exported from Jira:

relates to #1574

@matrixbot
Copy link
Member Author

From Dylanger:

Basically I took richvdh's identity
And his domain
Under my HS
Had his privs
Then gave myself permissions

I just changed my HS'es domain name
In YAML

So Dylanger has convinced his own HS that he has admin, and used that to generate a kick event, which has then been sent to Yaniel's, which has then accepted the kick despite the broken auth chain.

-- @richvdh

@matrixbot
Copy link
Member Author

I think the spoofed event ID here is $14691813430ugbai:onedefence.com

-- @dbkr

@matrixbot
Copy link
Member Author

From [~erikj]:

I don't think it was the spoof that actually caused the issues, but that auth rejected events were accidentally being inserted inserted into the state
(as opposed to events that were rejected way earlier due to bad sigs)

-- @richvdh

@matrixbot matrixbot added p1 z-bug (Deprecated Label) labels Nov 7, 2016
@matrixbot matrixbot changed the title Un-authable membership events can corrupt HS room state (SYN-735) Un-authable membership events can corrupt HS room state (https://github.com/matrix-org/synapse/issues/1571) Nov 7, 2016
@matrixbot matrixbot changed the title Un-authable membership events can corrupt HS room state (https://github.com/matrix-org/synapse/issues/1571) Un-authable membership events can corrupt HS room state (SYN-735) Nov 7, 2016
@richvdh
Copy link
Member

richvdh commented Feb 22, 2017

This is probably #1935

@richvdh
Copy link
Member

richvdh commented Mar 17, 2017

hrm... maybe not.

@richvdh
Copy link
Member

richvdh commented Jun 29, 2022

I'm reasonably sure this has been fixed by things like #10225.

@richvdh richvdh closed this as completed Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-bug (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

2 participants