All Rooms

SQL Injection

medium45 mintryhackme

This room teaches SQL injection from the ground up. You'll learn what databases and SQL are, then move through four practical levels: in-band UNION injection to dump tables, authentication bypass with OR 1=1, boolean-based blind injection to extract data character by character, and time-based blind injection using SLEEP(). The deployed machine has a multi-level web app where each level teaches a different SQLi technique. You'll enumerate databases, tables, columns, and extract credentials to progress through all four levels.

Skills You Will Learn

sql-injectionunion-injectionblind-sqliboolean-sqlitime-based-sqliauthentication-bypassdatabase-enumeration

Prerequisites

Walkthrough Phases

1

SQL & Database Fundamentals

Understand databases, SQL syntax, and how SQL injection works

2

Level 1: In-Band UNION SQLi

Use UNION injection to enumerate the database and extract credentials

3

Level 2: Authentication Bypass

Bypass a login form using SQL injection

4

Level 3: Boolean-Based Blind SQLi

Extract database contents character by character using true/false responses

5

Level 4: Time-Based Blind SQLi

Extract data using time delays when there's no visible true/false response

6

Out-of-Band SQLi & Remediation

Understand OOB exfiltration and how to prevent SQL injection

13 questions to answer

alienrecon start thm-sqlinjectionlm

Don't have AlienRecon? Get started here