Skip to content

Instantly share code, notes, and snippets.

@JCotton1123
Last active August 29, 2015 14:15
Show Gist options
  • Save JCotton1123/63c2a479f1b3a5cd858e to your computer and use it in GitHub Desktop.
Save JCotton1123/63c2a479f1b3a5cd858e to your computer and use it in GitHub Desktop.
PHP Audit

PHP Audit

  1. Command Injection, File Inclusion, Directory Traversal

Check use of:

find ./ -name "*php" -exec egrep -lE '(require|include)(_once)?(\s|\()+.*\$.*;$' {} \;
find ./ -name "*php" -exec egrep -lE 'file_get_contents(\s|\()+.*\$.*;$' {} \;
find ./ -name "*php" -exec egrep -lE 'file_put_contents(\s|\()+.*\$.*;$' {} \;
  1. Object injections

Check use of: serialize, unserialize

  1. SQL Injections

???

  1. Session Hijacking/Session fixation
  • Review login and logout pages
  • Setting session.cookie.httponly?
  1. XSS, Reflected XSS, CSRF

Check use of: $_REQUEST, $_POST, $_GET, $_SERVER, $_COOKIE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment