7 Critical. 4 High. Zero Credentials. Full AI Chatbot Pentest.
A production AI chatbot platform exposed its admin panel and APIs without authentication, allowing anyone to read customer PII, delete records, and hijack sessions. The chat endpoint also passed user input into a Jinja2 template, confirming server-side template injection that could lead to remote code execution.
medium.com
Published on medium.com
During an authorized penetration test of a commercially deployed AI chatbot SaaS platform, I uncovered a chain of twelve vulnerabilities ranging from unauthenticated admin panel access to server-side template injection with remote code execution potential. The platform integrated with WhatsApp Business API and…
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 missing authentication middleware on admin routes and unsafe concatenation of user input into a Jinja2 template string.
Impact
An unauthenticated attacker could read customer PII, delete appointments, hijack sessions, spoof webhook messages, and confirm SSTI; the LLM filter blocked command execution in this engagement, but the code-level flaw remains.
What the attacker needed
Network access to the target; no credentials required
The fix
The text recommends adding authentication middleware, validating webhook signatures, binding sessions to verified identities, passing user data as template variables, enforcing HTTPS, disabling API docs in production, and using server-side sessions.
How it was found
- Scan the target ports and find three Uvicorn services.
- Visit the admin panel URL and confirm it loads without credentials.
- Call the admin API endpoints to retrieve appointments and sessions.
- Send a DELETE request to cancel an appointment without authentication.
- Post a forged WhatsApp webhook payload without a valid signature.
- Use a harvested session ID on the chat API to cancel a victim's appointment.
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 admin area of a website was left open to anyone, so a stranger could see customer names, phone numbers and conversations, and even delete appointments. Separately, the chat feature put what users typed directly into a template that the server evaluates, which is like letting a visitor write part of a program the server then runs.
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.