The f12 Medical Breach Rag Chatbots
A medical RAG chatbot exposed its system prompt, backend configuration, and an unauthenticated endpoint that returned the most recent 1,000 patient conversations. Anyone with a browser could read internal logic and sensitive patient questions without logging in.
Published on systemweakness.com
Author: Berend Watchus. Independent non profit AI & Cybersecurity Researcher.
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 developers placed sensitive configuration and conversation data on the client side and left an API endpoint without authentication, breaking the trust boundary between browser and server.
Impact
Anyone could read internal system details and the last 1,000 patient conversations without authentication, contradicting the privacy statement that claimed no conversations were stored.
What the attacker needed
A web browser; no account needed
The fix
The application was taken offline for remediation after disclosure; the text says server-side configuration, authenticated endpoints, response minimisation, logging discipline, and independent pre-deployment review would have prevented the findings.
How it was found
- Open the chatbot in a browser and open Chrome Developer Tools.
- Inspect the Network tab to see the system prompt, model configuration, and retrieval logic sent to the client.
- Observe the API schema, internal hostnames, and vector-database connection details in browser traffic.
- Request the unauthenticated endpoint that returns the most recent 1,000 patient–chatbot conversations.
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 medical chatbot was built so that its private instructions and backend details were sent to every visitor's browser. Worse, a web address with no login check handed out the last thousand chats between patients and the bot. Anyone who opened their browser's developer tools could see and fetch this data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.