How I stumbled into my first “AI-powered” bug bounty target and found that an AI chatbot’s memory had no lock on it 🤷
An AI chat feature saved conversations server-side and fetched them by UUID without checking ownership, so anyone with a conversation ID could read another user's full chat history. The only guard was a client-side hash built from public values, which anyone could compute.
Bugbounty Writeup
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.
Context
For years my bug bounty routine was the same: pick a web app, poke the API, look for broken authentication, XSS, IDORs, SSRF. Then AI features started appearing everywhere: chatbots on e-commerce sites, "Ask AI" buttons on banking dashboards, trip-planning assistants on travel platforms. My hunch was that when teams ship an AI feature quickly, the access control around the unglamorous parts, such as who is allowed to read a saved conversation, is exactly what gets rushed.
So I picked a target specifically because it had an AI chatbot: a flight search and booking platform with a feature called AI Mode. You type something like "flights to London this October" into a chat box and an assistant builds your itinerary. Every conversation is saved server-side, tied to an ID, so you can come back and continue where you left off.

That last property, saved server-side and tied to an ID, is where the story starts.
Setup
The victim side needed no account: the feature is a public marketing surface, not something gated behind login. The proof of concept used two identities that were both mine:
- One browser profile playing the victim, which used AI Mode normally.
- A separate anonymous session playing the attacker, with its own visitor cookie.
I used the browser dev tools to watch the network traffic of the feature and read the client-side JavaScript that builds the request headers.
Finding it
Most people testing an AI chat feature focus on the AI part: prompt injection, jailbreaks, getting the model to say something embarrassing. I went the other way and asked a less glamorous question: once my conversation is saved, what actually stops someone else from reading it back?
I opened dev tools and used the feature normally, typing a flight search into the AI box and watching the traffic. A GraphQL request fired off to fetch my conversation history, referencing the conversation by a UUID. That is how most stateful chat features work, so nothing looked unusual yet.
The interesting part was what was missing. I expected some kind of session or ownership check tying that UUID to me specifically. Instead, the request that fetched conversation history took exactly one input: the conversation ID itself. There was no embedded proof that the requester was the person who created the conversation. That is the shape of a classic IDOR, the same bug that has lived in web apps for two decades, now wearing an AI costume.
The validation header
Before getting excited I assumed I was missing a guardrail and went looking for it. There was one: every request to this endpoint carried a custom validation header, clearly meant to act as a gate. My first assumption was that it was a signed, server-issued proof, which would have made this a dead end.
So I read the client-side JavaScript. The header was not a secret token issued by the server at all. It was a hash computed entirely from values the browser already had:
- a build identifier baked into every page load,
- a visitor cookie assigned to anyone who shows up,
- the contents of the request itself.
The lock on the door was a padlock with the combination printed on a sign next to it. Anyone could compute a valid token for any request, including one asking for someone else's conversation, as long as they had their own freely issued anonymous visitor cookie.
Exploitation
Bug bounty rule number one: never touch anyone else's actual data. The whole proof of concept used two identities that were both mine, with nothing in between but the vulnerability itself.
Step 1: create a victim conversation
The victim profile used AI Mode normally: it typed in a flight search and got a conversation saved on the server. That conversation is the object the attacker will try to read.
Step 2: collect the three ingredients
The attacker profile never talked to the victim profile. It did not need to. All it needed was:
- The victim's conversation ID. In a real attack this can leak through referrer headers, shared devices, logs, screenshots or support tickets; UUIDs travel more than people assume.
- Its own, completely unrelated visitor cookie.
- A locally computed version of the validation hash.
Step 3: request the victim's conversation
With those three things, the attacker session asked the server for the victim's conversation, and the server handed it over. The response contained the full chat history: where the victim was flying from (often a strong signal for home city), where they were headed, exact travel dates, passenger count, and any free text typed to the assistant.
The server never asked whether the requester owned the conversation. It only asked whether the hash was shaped correctly, and since the hash was made of public ingredients, the answer was always yes.
Step 4: try to write
I also tried to see whether the same weakness allowed writing to someone else's conversation, injecting messages or tampering with their itinerary. That path was properly rejected. The hole was read-only, not read-write: still bad, but not catastrophic.
Root cause
The request that fetched conversation history took exactly one input, the conversation ID, with no embedded proof that the requester created it. The only defence in front of it is a custom validation header, and that header is not a server-issued proof of anything: it is a hash over a build identifier, the caller's own visitor cookie and the request contents, all of which the caller controls or can read. Verifying that hash therefore only proves the request was assembled by something that knows the public recipe, not that the caller is entitled to the object.
Because the visitor cookie is issued anonymously to anyone who visits, anyone can compute a valid token for any request. The server's check is on the shape of the hash, not on ownership of the conversation, so the access-control decision that should have happened never does.
Impact
Any anonymous visitor who used the AI trip planner, which is presumably most users since it is a public marketing feature, had a conversation sitting on the server readable by anyone who obtained the ID. There was no password to guess and no session to hijack; the barrier to entry for the victim was simply having used the website.
The data is unusually personal for what looks like a plain API bug. A leaked order ID tells you someone bought something. A leaked AI travel conversation tells you where someone lives, when they are leaving town, and sometimes, because people talk to chatbots more casually than they fill in forms, why: "visiting my parents", "business trip Monday", that kind of thing, typed into a box that felt private because there was no reason to think otherwise.
The limit is that the bug is read-only. Writing to another user's conversation was rejected, so an attacker cannot inject messages or tamper with an itinerary through this path. Reading also depends on knowing the conversation ID, which the report does not show being enumerable; in a real attack it would have to leak through referrer headers, shared devices, logs, screenshots or support tickets.
Fix
The report does not describe what the vendor changed. The obvious need is a server-side ownership check binding each conversation to its creator. The validation header can stay as a convenience, but it must not be the only thing standing between a caller and an object, and it should not be computable purely from public values.
Variants to test
- Other stateful AI features. Look for any chat, assistant or history endpoint that takes an object ID as its only input. A positive result is a response containing another session's conversation when you supply only its ID and your own cookie.
- Client-computed validation headers. Read the JavaScript that builds custom headers. If the header is a hash over a build ID, your own cookie and the request body, recompute it for a request aimed at someone else's object. A positive result is the server accepting the recomputed value.
- Anonymous surfaces. Test features that work without login, such as public trip planners or marketing chatbots. A positive result is reading data created by an anonymous visitor other than yourself.
- Write paths. After confirming a read, try mutations on the same object: injecting a message or altering an itinerary. A positive result is any accepted write; in this target it was rejected, but the check may be missing elsewhere.
- ID leakage. Check whether conversation IDs appear in referrer headers, shared links, logs or support flows. A positive result is an ID you can obtain without guessing.
The lesson I took from this: do not just attack the model, attack the plumbing around it. How is the conversation stored, what ID points to it, and what actually checks who is asking? Those questions are not AI-specific, but they are being shipped inside AI features faster than teams re-apply old lessons to new surfaces. The novelty of the feature does not make the bug novel; it just makes it easier to miss.
What happened, in plain words
A security researcher spent years testing ordinary websites for the same handful of mistakes. Then AI chat boxes started appearing on shopping sites, banking dashboards and travel platforms, and he had a hunch: when a company rushes to ship a shiny new AI feature, the boring safety checks around it get skipped. So he deliberately picked a target because it had an AI chatbot: a flight search and booking site with a feature called AI Mode. You type something like "flights to London this October" into a chat box and an assistant builds an itinerary for you. Every conversation is saved on the company's computers, tied to an ID, so you can come back later and carry on where you stopped.
That last detail, saved on the server and tied to an ID, is where the story begins. The researcher found that anyone who knew an anonymous conversation's ID could read the whole thing, without logging in or being the person who created it. The only thing standing in the way was a custom header that looked like a security token but turned out to be a value anyone could calculate at home. He proved it using two browser profiles that both belonged to him, and reported it through a private bug bounty programme.

The background: what a bug bounty is, and what was being tested
A bug bounty programme is a deal between a company and independent researchers: find security flaws in our systems, tell us privately, and we may pay you. The company sets the rules, including which systems are in scope and what you are not allowed to touch. The most important rule, repeated in almost every programme, is: never access other people's real data. Prove the flaw with your own accounts and your own data, and stop there.
For years the researcher's routine on these programmes looked the same. Pick a web app, poke its API, and look for the usual suspects:
- Broken authentication: the login or identity check can be bypassed.
- XSS (cross-site scripting): you can get your own code to run inside someone else's browser session on the site.
- IDOR (insecure direct object reference): the site lets you ask for a record by its ID without checking that the record is yours.
- SSRF (server-side request forgery): you can trick the company's server into making requests on your behalf, often to internal systems.
These are well-known categories, and experienced testers have muscle memory for them. Then AI features started showing up everywhere: chatbots bolted onto e-commerce sites, "Ask AI" buttons on banking dashboards, trip-planning assistants on travel platforms. Everyone was racing to ship the chat box.
The hunch was simple. When teams move fast to ship an AI feature, the access control around the unglamorous parts gets rushed. Access control is the set of rules that decides who is allowed to see or change what. A useful everyday comparison: a hotel has rooms, and access control is the keycard system. The exciting new feature is the fancy lobby; access control is the question of whether room 214's door actually checks your card, or just checks that you are holding a card.
So the researcher picked a target specifically because it had an AI chatbot: a flight search and booking platform with a feature called AI Mode. You type something like "flights to London this October" into a chat box and an assistant builds your itinerary. Every conversation you have with it is saved server-side (on the company's computers, not in your browser) and tied to an ID, so you can come back and pick up where you left off.
That sentence, saved server-side and tied to an ID, is where this story starts.
The feature nobody thinks about
Most people testing an AI chat feature focus on the AI part: prompt injection (sneaking instructions into the input so the model does something it should not), jailbreaks (talking the model past its own rules), getting the model to say something embarrassing. That work is fun, but it is crowded territory.
The researcher went the other direction and asked a much less glamorous question: once my conversation is saved, what actually stops someone else from reading it back?
To find out, he opened the browser's developer tools and used the feature completely normally. Developer tools (dev tools) are built into every modern browser; you press a key or open a menu and get panels that show what the page is doing behind the scenes. The most useful panel here is the Network tab, which lists every request the page sends to the server and every response that comes back. A useful comparison: dev tools are the kitchen door of a restaurant. You are still eating the same meal, but you can watch how it is prepared.
He typed a flight search into the AI box and watched the network traffic. A GraphQL request fired off to fetch his conversation history, referencing the conversation by a UUID.
Two terms need unpacking here.
- GraphQL is a way for a web page to ask a server for data. Instead of many fixed addresses ("give me the user", "give me the orders"), there is usually one address, and the page sends a structured description of exactly what it wants. Think of a restaurant where, instead of ordering from a fixed menu, you hand the waiter a written list of ingredients and dishes you want combined.
- A UUID (universally unique identifier) is a long random-looking string of letters, digits and hyphens, used as a name for one specific record. It is used as a name for one specific record. Think of it as a coat-check ticket number: it identifies your coat, and in theory only you hold the ticket.
Nothing looked unusual so far. That is how most stateful chat features work. "Stateful" just means the server remembers things between visits: your conversation exists on the server, not only in your browser tab, which is why you can close the page and come back to it.
The interesting part was what wasn't there. The researcher expected some kind of session or ownership check tying that UUID to him specifically. Instead, the request that fetched conversation history took exactly one input: the conversation ID itself. There was no embedded proof that the requester was the person who created the conversation.
That is the shape of a classic IDOR, insecure direct object reference. The name sounds technical; the idea is simple. A website stores many records, each with an ID. When your browser asks for record number X, a safe website checks two things: does record X exist, and are you allowed to see it? An IDOR is when the site checks only the first. It is like a cloakroom that hands over any coat to anyone who presents the ticket number, without checking that the person asking is the one who left it.
This is the same bug that has quietly lived in web apps for two decades. It is just wearing a new AI costume.
"Wait, there's a token though"
Before getting excited, the researcher did what good testers always do: assume a guardrail is missing from view, and go looking for it. A guardrail here means any check that stops unauthorised access.
There was one. Every request to this endpoint carried a custom validation header, clearly meant to act as a gate.
A header is a small piece of extra information attached to every request and response between a browser and a server. You never see headers while browsing, but they carry things like what browser you use, what format you accept, and, in this case, a value the site wants to see before it answers. A useful comparison: a header is like the stamp on a form at a government office. The clerk looks at the stamp before processing the paper.
His first assumption was that this header was some kind of signed, server-issued proof. "Signed" means the server created it and can verify it was not forged, the way a wax seal on a letter proves who sent it. If that had been true, the story would have ended there: you could not produce a valid header for someone else's conversation.
So he did what you do with any client-side JavaScript: he read it. JavaScript is the programming language that runs inside your browser and makes pages interactive. "Client-side" means it runs on your computer, not on the company's server. That matters enormously for security: anything that runs on your computer can be read by you, because it had to be delivered to your computer in the first place. A useful comparison: client-side code is a recipe printed on the back of the box. You can read every step, and you can follow it yourself.
What he found was that the header was not a secret token issued by the server at all. It was a hash computed entirely from values the browser already had:
- a build identifier baked into every page load,
- a visitor cookie assigned to anyone who shows up,
- the contents of the request itself.
Three more terms to unpack.
- A hash is a mathematical fingerprint. You feed it some text and it produces a fixed-length string of characters. The same input always gives the same output, and changing the input even slightly gives a completely different output. Crucially, a hash is not encryption: there is no key and no secret. Anyone who knows the recipe and the ingredients can compute the same result.
- A build identifier is a label for a particular version of the website's code, something like a version number. It is the same for every visitor, and it is visible in the page's files.
- A cookie is a small piece of text that a website asks your browser to store and send back with every request to that site. It is how a site recognises you between page loads. A visitor cookie is one handed out to anyone who arrives, even without logging in, purely to tell visitors apart. It is not a password and it is not proof of identity; it is more like a name badge handed out at the door to every guest, including strangers.
In other words: the "lock" on the door was a padlock whose combination was printed on a sign next to it. Anyone could compute a valid token for any request, including one asking for someone else's conversation, as long as they had their own visitor cookie, which the site hands out freely and anonymously.
That is the moment a "huh, interesting" bug turns into "wait, I think I can read a stranger's data."
Proving it, carefully
Bug bounty rule number one: never touch anyone else's actual data. So the whole proof of concept was built using two identities that were both his own. A proof of concept (PoC) is a minimal demonstration that a flaw is real, done safely, without harming anyone.
The victim side needed no account, because the feature is a public marketing surface, not something gated behind login. Two identities were enough:
- One browser profile playing "the victim", which used AI Mode normally.
- A separate anonymous session playing "the attacker", with its own visitor cookie.
A browser profile is a separate storage area inside the same browser: its own cookies, its own history, its own logged-in state. Opening a second profile is like using a second, completely separate computer as far as websites are concerned. That is exactly what makes it a safe way to play both sides.
The researcher used the browser dev tools to watch the network traffic of the feature and to read the client-side JavaScript that builds the request headers.
Step 1: create a victim conversation
The victim profile used AI Mode normally: it typed in a flight search and got a conversation saved on the server. That conversation is the object the attacker will try to read. Nothing unusual happened here; this is just a normal visitor using a normal feature.
Step 2: collect the three ingredients
The attacker profile never talked to the victim profile at all. It did not need to. All it needed was:
- The victim's conversation ID. In a real attack this can leak through referrer headers, shared devices, logs, screenshots or support tickets; UUIDs travel more than people assume.
- Its own, completely unrelated visitor cookie.
- A locally computed version of the validation hash.
A referrer header is a header your browser sends automatically when you click a link, telling the destination site which page you came from. If a page's address contains a conversation ID, that ID can end up in the referrer header of the next site you visit. That is one of several ordinary ways an ID can escape.
Notice what is not on the list: no password, no login, no stolen session, no access to the victim's browser. The attacker only needs a name for the record, its own name badge, and the ability to do arithmetic.
Step 3: request the victim's conversation
With those three things, the attacker session asked the server for the victim's conversation, and the server handed it over. The response contained the full chat history: where the victim was flying from (often a strong signal for home city), where they were headed, exact travel dates, passenger count, and any free text typed to the assistant.
The server never asked whether the requester owned the conversation. It only asked whether the hash was shaped correctly, and since the hash was made of public ingredients, the answer was always yes.
This is the heart of the bug. The server performed a check, but it was the wrong check. It verified that the request looked like it came from the website, not that the person sending it was entitled to the record. A useful comparison: a bouncer who checks that you are wearing a wristband, but never checks whether the wristband was issued for this club, this night, or this guest list.
Step 4: try to write
The researcher also tried to see whether the same weakness allowed writing to someone else's conversation: injecting messages or tampering with their itinerary. That path was properly rejected. The hole was read-only, not read-write: still bad, but not catastrophic.
"Read" and "write" are the two basic kinds of access. Reading means seeing data; writing means changing it. A read-only hole leaks information. A read-write hole lets an attacker alter someone's plans, which is a different order of harm. Here, the server refused the write, which is a small mercy.
Why this one bugged me more than a typical IDOR
First, the "victim" doesn't need an account. This was not gated behind login. Every anonymous person who used the AI trip planner, which is presumably most of them, since it is a public marketing feature, had a conversation sitting there, readable by anyone who got hold of the ID. No password to guess, no session to hijack. The barrier to entry for the victim was simply "used the website".
That flips the usual picture. In most account-based bugs, the victim at least had an account, and the attacker had to get past a login. Here, the pool of potential victims is anyone who ever tried the feature, and the attacker needs nothing but an ID.
Second, the data itself is unusually personal for a "just an API bug". A leaked order ID tells you someone bought something. A leaked AI travel conversation tells you where someone lives, when they are leaving town, and sometimes, because people talk to chatbots more casually than they fill out forms, why. "Visiting my parents", "business trip Monday", that kind of thing, typed straight into a text box that felt private because there was no reason to think otherwise.
That is the quiet danger of AI features: they invite people to type more candidly than a search bar ever did, while sitting on the exact same access-control plumbing as everything else on the site. Plumbing here means the ordinary machinery underneath a feature: how data is stored, how it is looked up, who is allowed to look it up. The AI is the visible part; the plumbing is what actually decides who sees what.
What I reported
If you are moving into this space for the first time, here is the shift in mindset that paid off: do not just attack the model, attack the plumbing around it.
Everyone is staring at the chatbot, trying to make it say something it should not. Fewer people are asking the unglamorous questions: how is this conversation stored? What ID points to it? What, if anything, actually checks who is asking? Those questions are not AI-specific at all. They are the same access-control fundamentals testers have always used, but they are being shipped inside AI features faster than teams re-apply old lessons to new surfaces.
The novelty of the feature does not make the bug novel. It just makes it easier to miss.
This was the researcher's first vulnerability found on an AI-powered target, reported through a private bug bounty programme.
Glossary
- Access control: the rules that decide who is allowed to see or change which data.
- API: the interface a web page uses to ask a server for data or actions, usually without any visible page reload.
- Broken authentication: a flaw where the login or identity check can be bypassed.
- Browser profile: a separate storage area in a browser with its own cookies and logged-in state, effectively a separate identity.
- Build identifier: a label for a particular version of a website's code, the same for every visitor and visible in the page's files.
- Bug bounty programme: a scheme where a company invites independent researchers to report security flaws privately, often for a reward.
- Client-side JavaScript: code that runs inside your browser rather than on the company's server, and which anyone can read.
- Cookie: a small piece of text a site asks your browser to store and send back with each request, used to recognise you between page loads.
- Developer tools (dev tools): panels built into a browser that show requests, responses and page code.
- GraphQL: a way for a page to ask a server for data by sending a structured description of exactly what it wants.
- Guardrail: any check that stops unauthorised or unintended actions.
- Hash: a mathematical fingerprint of some input; the same input always gives the same output, and no secret key is involved.
- Header: extra information attached to a request or response, such as the browser type or a value the site wants to see before answering.
- IDOR (insecure direct object reference): a flaw where a site lets you request a record by its ID without checking that the record belongs to you.
- Jailbreak: talking an AI model past its own rules.
- Network tab: the dev tools panel that lists every request and response between the page and the server.
- Plumbing: the ordinary machinery under a feature, such as storage, lookup and permission checks.
- Proof of concept (PoC): a minimal, safe demonstration that a flaw is real.
- Prompt injection: sneaking instructions into an AI model's input so it does something it should not.
- Read-only: access that allows seeing data but not changing it.
- Referrer header: a header the browser sends automatically telling the destination site which page you came from.
- Server-side: happening on the company's computers rather than in your browser.
- SSRF (server-side request forgery): tricking a company's server into making requests on your behalf.
- Stateful: a feature where the server remembers things between visits.
- UUID (universally unique identifier): a long random-looking string used as the unique name of one record.
- Validation header: a custom header a site requires on requests, intended as a gate.
- Visitor cookie: a cookie handed out to anyone who visits, even without logging in, used only to tell visitors apart.
- XSS (cross-site scripting): getting your own code to run inside someone else's browser session on a site.