Full Customer DB dump in Service Now and they called it “Medium Risk” — what a joke
An internet-exposed AI chatbot for ServiceNow's customer database allowed unauthenticated users to interact with it and modify backend SQL queries. Through prompt injection, the author dumped the entire customer database, exposing contact information, sales data, and internal metrics.
Published on fdzdev.medium.com
If you haven’t connected with me on LinkedIn send me a request!
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 AI chatbot lacked proper authentication and input validation, allowing users to modify SQL queries and bypass access controls via prompt injection.
Impact
An unauthenticated attacker could access the entire customer database, potentially exposing PII and financial records, though the text does not specify if all data was actually retrieved.
What the attacker needed
Internet access; no authentication required
The fix
The issue was fixed according to the timeline, but the text does not describe the fix.
How it was found
- Found an internal-looking AI chatbot URL during recon.
- Interacted with the chatbot without authentication and saw a SQL compilation error exposing table and column names.
- Used the Modify Query option to tweak SQL queries.
- Experimented with prompt injections to dump the entire customer database.
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.
An AI chatbot was connected to a company's customer database. The chatbot was supposed to only let logged-in users see data, but it accepted instructions from anyone. By typing special instructions, the author tricked the chatbot into running database queries and showing all the customer information.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.