From the course: Programming Foundations: Web Security
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Expect the unexpected
From the course: Programming Foundations: Web Security
Expect the unexpected
- Our next core security principle is to always expect the unexpected. Security is not like chess, where you can watch someone's move and then respond to it. Security has to be proactive, not reactive. You must assume that you will be hacked. Your job is to figure out how it will happen ahead of time. You have to prevent the crime before it happens. It's sometimes referred to as a mystery in reverse. This task may seem daunting until you gain some experience doing it. You have to consider each part of your website and ask, what are all the things that a user could try? Often, vulnerabilities are found in what we call edge cases. Most users will use a website exactly as we expect. It's easy for us to plan for those cases when we build the site. The well-worn path should not have any bugs or unexpected quirks. A few users will take unexpected actions. Our code needs to anticipate and handle these extraordinary cases…
Contents
-
-
-
- Least privilege3m 33s
- (Locked) Simple is more secure2m 40s
- (Locked) Never trust users3m 7s
- (Locked) Expect the unexpected2m 10s
- (Locked) Defense in depth3m 23s
- (Locked) Resilience4m 31s
- (Locked) Security through obscurity3m 56s
- (Locked) Deny-listing and allow-listing3m 3s
- (Locked) Map exposure points and data passageways3m 34s
-
-
-
-