2020-06-30 15:12:39 -07:00
2020-06-29 17:25:19 -07:00
2020-06-29 17:25:19 -07:00
2020-06-30 15:10:41 -07:00
2020-06-29 17:25:19 -07:00

SQL injection example

Setup and sample run

  ./build.sh

  ./admin create-db
  ./admin show-db

  # Add regular user interactively
  ./add-user 2>> users.log
  ./admin show-db

  # Regular user
  echo "sample user" | ./add-user 2>> users.log
  ./admin show-db

  # Johnny Droptable
  echo "Johnny'); DROP TABLE users; -- " | ./add-user 2>> users.log

  ./admin show-db
Description
sql injection sample in C using sqlite
Readme 4.2 MiB
Languages
Shell 44.1%
C 30.9%
CodeQL 25%