isChild | anchor |
---|---|
true |
web_application_security |
It is very important for every PHP developer to learn the basics of web application security, which can be broken down into a handful of broad topics:
- Code-data separation.
- When data is executed as code, you get SQL Injection, Cross-Site Scripting, Local/Remote File Inclusion, etc.
- When code is printed as data, you get information leaks (source code disclosure or, in the case of C programs, enough information to bypass ASLR).
- Application logic.
- Missing authentication or authorization controls.
- Input validation.
- Operating environment.
- PHP versions.
- Third party libraries.
- The operating system.
- Cryptography weaknesses.
There are bad people ready and willing to exploit your web application. It is important that you take necessary precautions to harden your web application's security. Luckily, the fine folks at The Open Web Application Security Project (OWASP) have compiled a comprehensive list of known security issues and methods to protect yourself against them. This is a must read for the security-conscious developer. Survive The Deep End: PHP Security by Padraic Brady is also another good web application security guide for PHP.