Zero-Click IP Leak in a Privacy Search Engine: Indirect Prompt Injection & Silent Patching
An indirect prompt injection in Kagi's AI Assistant caused the LLM to append a Markdown image pointing to an attacker-controlled server, and the frontend rendered it without proxying, so the victim's browser fetched it and leaked their real IP address with zero clicks. The vendor initially closed the report as not applicable, but later clarified that a broader rollout of Markdown/HTML rendering fixes had already stopped the payload from working.
infosecwriteups.com
Published on infosecwriteups.com
Kagi Search has built a solid and highly respected reputation on one main promise: absolute user privacy. No ads, no tracking.
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 assistant did not separate webpage content from user instructions, and the frontend rendered untrusted Markdown images without stripping or proxying them.
Impact
A victim's real IP address could be leaked to an attacker with zero clicks, deanonymising users of a privacy-focused search engine; the text notes the behaviour later stopped after broader rendering fixes were deployed.
What the attacker needed
Victim uses Kagi Assistant; victim asks it to summarise attacker page; attacker hosts a public webpage; attacker controls a logging server
The fix
The text says the behaviour stopped after a broader rollout of fixes to how the Assistant handles Markdown/HTML rendering, and recommends proxying Markdown images.
How it was found
- Create a public webpage containing a hidden instruction for the AI.
- Ask the Kagi Assistant to summarise that webpage using the KIMI K2.5 model.
- The model follows the hidden instruction and appends a Markdown image link to its response.
- The chat UI renders the image, causing the victim's browser to request it from the attacker's server.
- Check the webhook logs to see the victim's IP address and headers proving a client-side request.
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 that summarises web pages can be tricked by hidden instructions on a page into adding an image link to its reply. If the chat interface displays that image directly, the reader's browser loads it from the attacker's server, which reveals the reader's IP address (the number that identifies their internet connection). The report shows this happened without the victim clicking anything.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.