The Chatbot That Let Anyone Read, Write, and Execute
The Rasa chatbot's HTTP API lacked authentication, allowing anyone to read and write any conversation's state via the user-controlled sender_id, and to execute registered actions that made authenticated calls to an internal data catalog. An unauthenticated attacker could thus hijack sessions, expose internal search queries, and proxy requests into internal systems.
medium.com
Published on medium.com
I was poking at a subdomain that looked like a product search assistant. The kind of internal tooling that gets deployed fast, tested for functionality, and never audited for security.
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
Likely the Rasa HTTP API was deployed with authentication disabled by default, and the sender_id parameter was not bound to any authenticated user session, allowing anyone to access any conversation.
Impact
An unauthenticated attacker could read and write any user's conversation state, expose internal search queries, execute actions that proxy requests into an internal data catalog, and disclose internal infrastructure details and secret variable names.
What the attacker needed
Rasa HTTP API exposed without authentication; Attacker can guess or know a sender_id
The fix
The report recommends adding an auth_token to all Rasa API endpoints, validating sender_id ownership, sanitising error messages, restricting the /domain endpoint, rate limiting enumerable endpoints, and using non-predictable server-generated IDs.
How it was found
- Find a subdomain with a name like *-assistant that runs Rasa.
- Send a request to the tracker endpoint for any sender_id without authentication and receive a 200 response with conversation data.
- Write a slot value to one session via the events endpoint.
- Read the same slot from a different session without any shared cookies or authentication.
- Call the execute endpoint to run a registered action that makes authenticated backend calls to an internal data catalog.
- Request the /domain endpoint to retrieve the full Rasa configuration without authentication.
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.
A chatbot server was set up so that anyone on the internet could talk to it without logging in. The chatbot used a simple name (sender_id) to keep track of each conversation, but it never checked whether the person asking was allowed to see that conversation. So an attacker could guess or know a name and read or change someone else's chat, and even make the chatbot run internal commands.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.