July 2016
Intermediate to advanced
66 pages
1h 27m
English
© Ben Edmunds 2016
Ben Edmunds, Securing PHP Apps, 10.1007/978-1-4842-2120-4_5
Ben Edmunds1
(1)Brooklyn, New York, USA
No story this time. This chapter is a catch-all for a couple other attacks you need to protect against, so there isn’t an overarching narrative. Try to contain your disappointment.
One of the core concepts of a secure system is safe defaults. Whenever possible (and it’s usually possible), you should define variables, properties, and so forth early with a safe default.
A safe default usually means a NULL, empty, or FALSE state. When determining logic flow, the default should always be a failure. For example, in the authentication ...
Read now
Unlock full access