Goal: Build a small Symfony app and evolve it into a secure, automated delivery pipeline (AppSec/DevSecOps practice).
Tech: PHP, Symfony, Git (Docker optional)
There are three web projects in this project:
-
appand symfony app which shows how it should be in modern days- start with
symfony serve - for W1D3 on you need
symfony server:ca:installand restart your browser - run tests
php bin/phpunit
- start with
-
lab-legacya basic app with lots of vulnarabilities, which will be fixed at time- start with
cd legacy-lab/public; php -S 127.0.0.1:8081 - setup in terminal
cd legacy-lab; php setup/setup.php - run composer
composer dump-autoload -o - unit test
./vendor/bin/phpunit
- start with
-
attackerscripts with bad habits- start with
cd attacker; php -S 127.0.0.1:8082
- start with
csrf-test— state BEFORE CSRF protection onPOST /admin.php(CSRF works / attacker.html can change note)csrf-fixed— state AFTER CSRF token validation (attacker gets 403)