Secure Coding in PHP Training

Print Friendly, PDF & Email

Secure Coding in PHP Training Course with Hands-on Exercises

Secure Coding in PHP Training Course discusses Web vulnerabilities through PHP-based examples going beyond the OWASP top ten, tackling various injection attacks, script injections, attacks against session handling of PHP, insecure direct object references, issues with file upload, and many others.

PHP-related vulnerabilities are introduced grouped into the standard vulnerability types of missing or improper input validation, incorrect error and exception handling, improper use of security features and time- and state-related problems. For this latter we discuss attacks like the open_basedir circumvention, denial-of-service through magic float or the hash table collision attack. In all cases participants will get familiar with the most important techniques and functions to be used to mitigate the enlisted risks.

A special focus is given to client-side security tackling security issues of JavaScript, Ajax and HTML5. A number of security-related extensions to PHP are introduced like hash, mcrypt and OpenSSL for cryptography, or Ctype, ext/filter and HTML Purifier for input validation. Hardening best practices are given in connection with PHP configuration (setting php.ini), Apache and the server in general. Finally, an overview is given to various security testing tools and techniques which developers and testers can use, including security scanners, penetration testing and exploit packs, sniffers, proxy servers, fuzzing tools and static source code analyzers.

Duration: 3 days

Related Courses
Customize It
  • If you are familiar with some aspects of this Secure Coding in PHP Training course, we can omit or shorten their discussion.
  • We can adjust the emphasis placed on the various topics or build the Secure Coding in PHP Training course around the mix of technologies of interest to you (including technologies other than those included in this outline).
  • If your background is nontechnical, we can exclude the more technical topics, include the topics that may be of special interest to you (e.g., as a manager or policy-maker), and present the Secure Coding in PHP Training course in manner understandable to lay audiences.
Audience / Target Group
  • Web developers, architects, and testers
Secure Coding in PHP Training - Objectives:

After completing this Secure Coding in PHP Training course, attendees will be able to:

  • Understand basic concepts of security, IT security and secure coding
  • Learn Web vulnerabilities beyond OWASP Top Ten and know how to avoid them
  • Learn to use various security features of PHP
  • Get information about some recent vulnerabilities of the PHP framework
  • Learn about typical coding mistakes and how to avoid them
  • Get practical knowledge in using security testing tools
  • Get sources and further reading on secure coding practices
Secure Coding in PHP Training - Course Content:

IT security and secure coding

o Nature of security
o IT security related terms
o Definition of risk
o Different aspects of IT security
o Requirements of different application areas
o IT security vs. secure coding
o From vulnerabilities to botnets and cyber crime
o Classification of security flaws

Web Application Vulnerabilities

Basics of Cryptography

o Cryptosystems
o Symmetric-key cryptography
o Other cryptographic algorithms
o Asymmetric (public-key) cryptography
o Public Key Infrastructure (PKI)

Client-side Security

o Javascript security
o AJAX security
o HTML5 security

PHP Security Services

o Cryptography extensions in PHP
o Input validation APIs

PHP Environment

o Server Configuration
o Securing PHP configuration
o Environment security
o Hardening
o Configuration management

Advice and Principles

o Matt Bishop's principles of robust programming
o The security principles of Saltzer and Schroeder

Input validation

o Input validation concepts
o Remote PHP code execution
o MySQL validation errors - beyond SQL Injection
o Variable scope errors in PHP
o File uploads, spammers
o Environment manipulation

Improper use of security features

o Problems related to the use of security features
o Insecure randomness
o Weak PRNGs in PHP
o Stronger PRNGs we can use in PHP
o Password management – stored passwords
o Some usual password management problems
o Storing credentials for external systems
o Privacy violation o Improper error and exception handling
o Classification of security flaws

Time and State problems

o Concurrency and threading
o Concurrency in PHP
o Preventing file race condition
o Double submit problem
o PHP session handling
o A PHP design flaw – open_basedir race condition
o Database race condition
o Denial of service possibilities
o Hashtable collision attack
o Classification of security flaws

Using Security Testing Tools

o Web vulnerability scanners
o SQL injection tools o Public database
o Google hacking o Proxy servers and sniffers
o Exercise – Capturing network traffic o Static code analysis

Secure Coding for PHP Training

Request More Information

Time Frame: 0-3 Months4-12 Months