CVE-2026-89093: Better Messages Unauthenticated Information Exposure via a Spoofed AI Bot Identity
Better Messages derived its AI chat bot identity from a guest's stored IP address, which was taken from a client-controlled header. An unauthenticated attacker could forge that identity to join, read and post in chat rooms that exclude guests.
cryptocat.me
Published on cryptocat.me
[A]I was diffing Better Messages releases again when the rewrite of its public chat room listing caught my eye. The new version replaced a hard cap of a hundred rooms with a paginated listing, and the endpoint that serves it carries permissioncallback => 'returntrue', so anyone can call it.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The plugin used a client-controlled request header (X-Real-IP) as the guest's IP address and then identified its AI bot by a string prefix on that field, without validating it as an IP or using a server-set identifier.
Impact
An unauthenticated attacker could join rooms that exclude guests, read their private message history and post messages, though ephemeral rooms and rooms without guest chat enabled globally remain out of reach.
What the attacker needed
Better Messages <= 2.15.33 with guest chat enabled; At least one chat room that excludes guests
The fix
The issue was fixed in version 3.0.0 by using a server-set bot_id instead of an IP prefix and by validating the client IP with filter_var().
How it was found
- Send an unauthenticated POST to the guest registration endpoint with an X-Real-IP header beginning with the bot prefix.
- Receive a guest id and secret, with the response reporting is_bot as 1.
- Use the guest id and secret as headers on calls to list chat rooms, join a room, load messages and send a message.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The plugin needed to recognise its own AI chat bot. It did this by checking whether a guest's saved IP address started with a special text string. But that IP address was simply copied from a request header the visitor controls, so anyone could pretend to be the bot and get into private chat rooms.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.