Implementation of double submit cookies pattern for cross-site request forgery attack protection using PHP.
- Download and install XAMPP (https://www.apachefriends.org/download.html)
- Replace the htdocs folder in the installed location with the provided htdocs folder.
- Start the Apache server and MySQL in XAMPP.
- Open phpMyAdmin (http://localhost/phpmyadmin/server_import.php) and import csrf.sql file.
- Access localhost (http://localhost) to run the web application.
- To try out a CSRF attack to the web application, open the "attack.html" file in the same browser session.