Lemmy Security Advisory for Versions < `0.19.1`: Private message details leak.

Open link in next tab

Any authenticated user may obtain private message details from other users on the same instance

https://github.com/LemmyNet/lemmy/security/advisories/GHSA-r64r-5h43-26qv

### Summary Users can report private messages, even when they're neither sender nor recipient of the message. The API response to creating a private message report contains the private message it...

Any authenticated user may obtain private message details from other users on the same instance

The full description of the bug is in the linked issue above, but the short version is:

Our CreatePrivateMessageReport endpoint had a bug that would allow anyone, not just the recipient, to create a report, and then receive the details about private messages.

This allowed anyone to iterate over ids, creating thousands of reports in order to receive details about private messages.

Since those reports are visible to admins, it would be easy to discover if someone was abusing this, and luckily we haven't heard of anyone doing so on production instances (so far).

If you haven't, please be sure to upgrade to at least 0.19.1 for the fix.

Many thanks to @Nothing4You for finding this one.