This Lab is Optional

For this lab you’ll need:

Note: Earlier in the course I said things would eventually go rodeo! (This is one of those labs. Stick with this one and take your time!)

The Ubuntu machine will be our webserver. Run the following to spin up a basic LAMP stack

apt install apache2 -y
apt install php mysql-server libapache2-mod-php php-mysql  -y
systemctl restart apache2

What is CSRF and CSRF Protection?

Cross Site Request Forgery (CSRF)

Simply Put: CSRF can be written into web applications to prevent unauthorized 3rd parties from hijacking sessions or performing brute force attacks through the use of simple brute force programs like Hydra, or crackmapexec.

In this lab we will:

Create a login.php page so that:

Create an action.php page that validates the value of username/password.