The attacker relies on the database to make a network request (like DNS or HTTP) to a server they control. 🛠️ Methodology for Solving Labs
The final stage of the lab involves using the established UNION query to pull specific information from the identified tables. In the context of TryHackMe, this usually involves locating a specific "flag" string.
At its heart, SQL injection occurs when user-supplied data is included in a database query in an unsafe way. Most labs focus on three primary types of injection: In-Band (Classic):