Explain an event
Paste a Matrix event, or a request between servers, and see which checks it passes, and why.
Problems found
| Field | Value | Meaning |
|---|---|---|
| typePayload |
m.room.message
|
What kind of event this is. Learn more |
| room_idOrigin |
!example:example.org
|
The room the event belongs to. Learn more |
| senderOrigin |
@mallory:example.org
|
The user who sent the event. Learn more |
| origin_server_tsOrigin |
1700000000000
|
When the sending server says it created the event, in milliseconds since 1970. Learn more |
| depthRoom graph |
9007199254740993
|
Position of the event in the room graph, as claimed by the sending server. Still required, but not trustworthy: a server can sign any value, and false ones have been used in attacks. Learn more |
| prev_eventsRoom graph |
[
"$nZmPWMzXh9ZuTzaHJGIJkhQkJyAc0rEwtNKj9y-_8uU"
]
|
The events that came directly before this one. Learn more |
| auth_eventsRoom graph |
[]
|
Earlier events that permit this one. Learn more |
| contentPayload |
{
"body": "Hello",
"score": 0.5
}
|
The payload. What belongs here depends on the type. Learn more |
There is no canonical form for this input. The checks say why.
Checks
Passed Input format
This is in the format servers exchange (a PDU).
What this checks: Servers exchange events as PDUs, which carry hashes, signatures and links to earlier events. Clients are given a shorter form without them. Short-lived messages such as typing notices travel as EDUs instead.
Note Room version
An event does not state its room version. Possible here: 4, 5, 6, 7, 8, 9, 10, 11. Select the version if you know it.
What this checks: The room version decides the event format, what redaction keeps and how event IDs are built. It is fixed when a room is created and is not written into each event, so it has to be worked out or told.
- Against 1, 2: "prev_events" and "auth_events" are plain event IDs. Room versions 1 and 2 write pairs of ID and hashes.
- Against 3: Referenced event IDs contain "-" or "_". Room version 3 uses "+" and "/" instead.
- Against 12: "room_id" names a server. In room version 12 a room ID is a hash without one.
- Against 6, 7, 8, 9, 10, 11, 12: It contains numbers that room version 6 and later reject.
Failed Canonical JSON
The key at "sender" appears twice. Programs disagree about which value counts, which can break signatures.
What this checks: Hashes and signatures are calculated over bytes, so every server has to write the same JSON in exactly the same way: keys sorted, no extra spaces, only whole numbers, no key twice.
Warning Canonical JSON
"origin_server_ts" is 1.7e12. Room version 6 and later reject this, older versions tolerate it.
Warning Canonical JSON
"depth" is 9007199254740993. Room version 6 and later reject this, older versions tolerate it.
Warning Canonical JSON
"content.score" is 0.5. Room version 6 and later reject this, older versions tolerate it.
Failed Required fields
"hashes" is missing.
What this checks: The fields every event of this kind must have, each with the right type of value. Servers reject events without them.
Note Event size
Not measured, because the event has no canonical form.
What this checks: A complete event, written as canonical JSON, has a maximum size. Larger events are rejected.
Note Hashes and event ID
Not computed, so signatures were not checked either. This needs a "type" string, a "content" object and, outside "unsigned", no problems with canonical JSON.
What this checks: The content hash shows changes, and the reference hash names the event. Both are calculated from its canonical JSON.
Passed Field limits
No field exceeds its limit.
What this checks: Some fields have their own maximum length or number of entries.
Note Field limits
"depth" is at the largest allowed integer, where servers must keep it once a room reaches it. That usually means the room was attacked with false depth values ("depth bombing").