Let me just pick a few examples from the code, because this is so bad
This is a core part of the protocol, that's not exactly simple (https://spec.matrix.org/v1.17/server-server-api/#authorization-rules)
They just have TODO comments, and happily accept anything, even if it's blatantly forged
If you have a fediverse account, you can quote this note from your own instance. Search https://tech.lgbt/users/JadedBlueEyes/statuses/115967809306270254 on your instance and quote it. (Note that quoting is not supported in Mastodon.)
![// Process incoming PDUs Nick Kuntz, 6 days ago
for (const pdu of pdus || []) {
try {
// TODO: Validate PDU signature
// TODO: Check authorization
// TODO: Store event
pduResults[pdu.event_id] = {};
} catch (e: any) {
pduResults[pdu.event_id] = {
error: e.message || 'Unknown error',
};
}
}](https://media.tech.lgbt/media_attachments/files/115/967/798/023/973/144/original/685133f904bc8a2a.png)