Open Deepseek Database:Wiz Bug Bounty Masterclass Lesson
An unauthenticated ClickHouse database was exposed on port 8123, allowing anyone to send SQL queries and read data. The author extracted a flag from a log table, demonstrating that sensitive information could be accessed without credentials.
Published on jareddouville.medium.com
Hey everyone! Today, we’re diving deep into a recent cybersecurity challenge that mirrors a critical real-world vulnerability from January 2025 the DeepSeek ClickHouse exposure.
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 configured to allow unauthenticated access on its HTTP interface, and the port was exposed to the internet without network restrictions.
Impact
An attacker could read sensitive log data from the exposed database without authentication, potentially exposing internal information.
What the attacker needed
Network access to the target host; no authentication required
The fix
The database should be configured to require authentication and restricted to trusted networks.
How it was found
- Scan the host for ports 8123 and 9000 to find open database services.
- Send a simple query to confirm the service is ClickHouse and responding.
- List all tables across databases to find interesting data.
- Describe the structure of the log_stream table to identify text columns.
- Search the string_values column for flag-like patterns to extract the flag.
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 unlocked on the internet, so anyone could open it and read the files inside. The author used simple web requests to ask the database questions and found a hidden flag.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.