Sign inSign up

pebenbow/open-sql-sqli-docker

By pebenbow

Updated 5 months ago

Image
0

521

pebenbow/open-sql-sqli-docker repository overview

SQL Injection Learning Lab

A containerized web application intentionally vulnerable to SQL injection attacks, designed for classroom use. Students run a single Docker container that launches a browser-accessible search interface backed by a PostgreSQL database.

Warning: This application is deliberately insecure. It must never be deployed on a public network or production environment. It is for educational use only in controlled, isolated settings.

Learning Objectives

Students will practice identifying and exploiting two common SQL injection attack classes:

  • Error-based SQLi — extracting database information from verbose error messages returned by the application
  • UNION-based SQLi — appending a secondary UNION SELECT query to the attacker-controlled input to retrieve data from other tables or the database catalog

Prerequisites

Quick Start

docker pull pebenbow/open-sql-sqli-docker:latest

docker run --name sqli-lab -p 8080:8080 pebenbow/open-sql-sqli-docker:latest

Then open http://localhost:8080 in your browser.

Stopping and Removing the Container

docker stop sqli-lab
docker rm sqli-lab

Building Locally

docker build -f Containerfile -t open-sql-sqli-docker .
docker run --name sqli-lab -p 8080:8080 open-sql-sqli-docker

Acknowledgments

Developed by Pete Benbow at Davidson College for use in database and cybersecurity coursework.

Tag summary

Content type

Image

Digest

sha256:954baa158

Size

161.2 MB

Last updated

5 months ago

docker pull pebenbow/open-sql-sqli-docker