# Meridian Freight — SQL Injection Auth Bypass (lab)

> Meridian Freight's internal shipping portal was rushed into production, and its login form builds a SQL query the quick way.

Canonical: https://codelivly.com/labs/sqli-login-bypass

| | |
|---|---|
| Type | Web |
| Difficulty | Beginner |
| Points | 100 |
| Session length | 30 min |
| Completions | 35 |

Meridian Freight's internal shipping portal was rushed into production, and its login form builds a SQL query the quick way. The staff accounts you might guess reveal nothing useful — the master shipping key is only visible to an administrator. Sign in as admin without knowing the password.

## Objective

Learn how a single quote can walk straight past a login form. You will exploit a classic SQL injection authentication bypass to sign in as an administrator whose password you do not know.

## Tasks

1. Open the lab and find the login form
2. Try a normal login
3. Break out of the string
4. Comment out the password check
5. Log in as admin
6. Capture the flag

## Related

- [All labs](https://codelivly.com/practice?type=lab)
