2017 © Pedro Peláez
 

library notch

A vulnerable application

image

psecio/notch

A vulnerable application

  • Friday, January 23, 2015
  • by enygma
  • Repository
  • 2 Watchers
  • 4 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Notch: A Vulnerable Application

Notch is a vulnerable PHP-based application only to be used for training purposes. DO NOT deploy this application in a production environment as it has many known vulnerabilities that could lead to a compromise of your system., (*1)

Manual installation

You can install a Notch instance manually in a few simple steps:, (*2)

  1. git clone the repo into a web accessible directory, like /var/www/notch
  2. Run a composer.phar install to get all dependencies
  3. Create the database needed:
mysqladmin create notch;
mysql -u root -p -e "grant all on notch.* to 'notch'@'localhost' identified by 'notch42'";
  1. Run the migrations: vendor/bin/phinx migrate

This should get you up and running with your basic site and a bit of content., (*3)

Vagrant installation

A Vagrant setup has been provided in the vagrant/ directory making it a one command install once it's cloned:, (*4)

cd vagrant; vagrant up

One thing to note here though - the Vagrant setup uses name-based virtual hosts, so you'll need to add this to your /etc/hosts:, (*5)

192.168.1.100 notch.localhost

The vulnerabilities

There are several vulnerabilities that are purposefully included in the Notch application based on the OWASP Top 10 list including:, (*6)

  • SQL injection (A1)
  • Broken Authentication & Session Management (A2)
  • Cross-site scripting (A3)
  • Insecure Direct Object References (A4)
  • Sensitive Data Exposure (A6)

There are places in the application where comments with the word "Hint" have been placed to help guide you to locate the issues. As this is being used for a tutorial at the PHP Benelux conference, I'm not going to show them just yet :), (*7)

The Versions

18/01 2015

dev-direct-object

dev-direct-object https://github.com/psecio/notch.git

A vulnerable application

  Sources   Download

MIT

The Requires

 

The Development Requires

security application vulnerable

22/12 2014