Essential PHP Security
By
Chris Shiflett
October 2005
Pages: 124
| Table of Contents
| Index
| Sample Chapter
| Colophon
Table of Contents
-
Chapter 1 Introduction
-
PHP Features
-
Principles
-
Practices
-
Chapter 2 Forms and URLs
-
Forms and Data
-
Semantic URL Attacks
-
File Upload Attacks
-
Cross-Site Scripting
-
Cross-Site Request Forgeries
-
Spoofed Form Submissions
-
Spoofed HTTP Requests
-
Chapter 3 Databases and SQL
-
Exposed Access Credentials
-
SQL Injection
-
Exposed Data
-
Chapter 4 Sessions and Cookies
-
Cookie Theft
-
Exposed Session Data
-
Session Fixation
-
Session Hijacking
-
Chapter 5 Includes
-
Exposed Source Code
-
Backdoor URLs
-
Filename Manipulation
-
Code Injection
-
Chapter 6 Files and Commands
-
Traversing the Filesystem
-
Remote File Risks
-
Command Injection
-
Chapter 7 Authentication and Authorization
-
Brute Force Attacks
-
Password Sniffing
-
Replay Attacks
-
Persistent Logins
-
Chapter 8 Shared Hosting
-
Exposed Source Code
-
Exposed Session Data
-
Session Injection
-
Filesystem Browsing
-
Safe Mode
-
Appendix A Configuration Directives
-
allow_url_fopen
-
disable_functions
-
display_errors
-
enable_dl
-
error_reporting
-
file_uploads
-
log_errors
-
magic_quotes_gpc
-
memory_limit
-
open_basedir
-
register_globals
-
safe_mode
-
Appendix B Functions
-
eval()
-
exec()
-
file()
-
file_get_contents()
-
fopen()
-
include
-
passthru()
-
phpinfo()
-
popen()
-
preg_replace()
-
proc_open()
-
readfile()
-
require
-
shell_exec()
-
system()
-
Appendix C Cryptography
-
Storing Passwords
-
Using mcrypt
-
Storing Credit Card Numbers
-
Encrypting Session Data
-
About the Author
-
Colophon
Return to Essential PHP Security