Wiz Research Uncovers Exposed DeepSeek Database Leaking Sensitive Information, Including Chat History
A publicly accessible ClickHouse database belonging to DeepSeek was left unauthenticated, exposing over a million log entries that included chat history, API keys, and backend details. An attacker could access and control the database, potentially escalating privileges and exfiltrating sensitive data.
Wiz Research has identified a publicly accessible ClickHouse database belonging to DeepSeek, which allows full control over database operations, including the ability to access internal data. The exposure includes over a million lines of log streams containing chat history, secret keys, backend details, and other…
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 ClickHouse database was exposed to the internet without authentication or access controls.
Impact
An attacker could retrieve sensitive logs, plain-text chat messages, API keys, and potentially exfiltrate passwords and local files, and could achieve full database control and privilege escalation.
What the attacker needed
None
The fix
DeepSeek promptly secured the exposure after responsible disclosure.
How it was found
- Map DeepSeek's external attack surface by discovering subdomains.
- Scan for open ports beyond standard HTTP ports (80/443).
- Identify unusual open ports 8123 and 9000 on two hosts.
- Access the ClickHouse HTTP interface at the /play path.
- Run a SHOW TABLES; query to list accessible datasets.
- Inspect the log_stream table containing over 1 million log entries with sensitive data.
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 database is like a digital filing cabinet that stores information. Here, the cabinet was left open on the internet with no lock, so anyone who found it could read or change everything inside. The data included private chats and secret keys, which could let attackers impersonate the service or steal user information.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.