Skip to content

oktadev/sql-injection-in-php

 
 

Repository files navigation

SQL Injections in PHP: Practices to avoid

Code related to the blog post SQL Injections in PHP.

Prerequisites

  • PHP 7
  • composer
  • PHP pdo_sqlite extension
  • Optionally, pdo_mysql extension and an accessible MySQL server

Install

Execute composer install to check dependencies and generate the needed autoload code. That will create the corresponding vendor/folder.

Execute php -S localhost:8080 to launch a local HTTP server listening in port 8080.

Using your browser, access http://localhost:8080/findStudent.php to access the vulnerable Find Student app.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 67.0%
  • PLpgSQL 33.0%