Laika / demo-webapp

Demo webapp for CI fuzzing by shfz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo-webapp

A memo app containing multiple vulnerabilities.

Fuzzing Framework shfz is set in this repository, and you can fork this and try fuzzing.

check scenario and Actions workflow.

Try Fuzzing

  1. Fork this repository.

  1. Go to Settings -> General -> Features -> enable Issues.

  1. Go to Actions -> enable workflows.

  1. Go to Actions -> Workflows -> All workflows -> fuzzing, click Run workflow button, select Branch: main, and click green Run workflow button.

  1. Fuzzing is started, and report is posted on issue.

Memo app

setup

$ docker-compose build
$ docker-compose up -d

Database does not respond to initialization processing for about 30 seconds after startup.

Command

Docker

  • build to image
$ docker-compose build
  • run containers
$ docker-compose up -d
  • stop containers
$ docker-compose stop
  • delete containers
$ docker-compose rm
  • show logs
$ docker-compose logs
  • rebuild and restart service
$ docker-compose stop
$ docker-compose rm
$ docker-compose build
$ docker-compose up -d
  • When initializing the database (Erase all data, Change schema, Change username and password)
$ docker-compose stop
$ docker-compose rm
$ rm -rf ./db/data
$ docker-compose up -d

Database

  • connect
# install mysql-client
$ sudo apt install -y mysql-client

# connect mysql
$ mysql -u root -p -h 127.0.0.1 -P 3306 --protocol=tcp
Enter password:
  • query
mysql> use flask_db;
mysql> insert into users (username, password) values ('test', '111111');
mysql> select * from users;

+----+----------+----------+
| id | username | password |
+----+----------+----------+
|  1 | test     | 111111   |
+----+----------+----------+

mysql> insert into memos (user, title, text) values ('test', 'test-memo', 'test{this_is_test_memo}');
mysql> select * from memos;

+----+------+-----------+-------------------------+
| id | user | title     | text                    |
+----+------+-----------+-------------------------+
|  1 | test | test-memo | test{this_is_test_memo} |
+----+------+-----------+-------------------------+

About

Demo webapp for CI fuzzing by shfz

License:MIT License


Languages

Language:CSS 81.3%Language:Python 14.9%Language:TypeScript 2.0%Language:JavaScript 1.5%Language:Dockerfile 0.4%