LAB_03publié

Application security — Mijote Maison (GRETA)

Educational PHP MVC / MySQL project with application protections, a security report and public source code.

PHPMySQLPDOCSRFSessionsCSP

Sources you can inspect

Objective

Apply security protections in an educational web application and make the decisions verifiable in its source code.

Walkthrough
  1. 01MySQL access through PDO prepared statements in repositories.
  2. 02CSRF tokens generated with random_bytes and checked with hash_equals.
  3. 03HttpOnly / SameSite session cookies and session ID regeneration after login.
  4. 04File validation, CSP headers and authentication logging.
  5. 05Security report and PHPUnit tests for security functions.
Key findings
Skills practised
  • ▸Application security
  • ▸PHP MVC / MySQL
  • ▸Input validation
  • ▸Documenting protections
Verifiable material
  • ◆Public source code
  • ◆Security report available
  • ◆Security tests included in the repository

Privacy choices

Your choice is kept for 180 days. You can change or withdraw it using Cookie settings at the bottom of every page.

Necessary functions

Always enabled

Remembering your privacy choice, your sound preference when requested, and a secure session if the administrator signs in. No advertising trackers.

Read the full privacy policy