concept security issue in category security

appears as: security issues, security issue, security issues
Secure by Design

This is an excerpt from Manning's book Secure by Design.

When you start using domain primitives as the smallest building blocks in your domain model, you’ll be able to create code with a significantly reduced likelihood of security issues, simply by the way you’re designing it. You’re designing code that’s precise and leaves little or no room for ambiguity. This type of code tends to contain fewer bugs and, as a consequence, fewer security vulnerabilities. The code also tends to be easy to work with because domain primitives lower the cognitive load on developers. We’ll spend the rest of this section expanding on what domain primitives are, how to define them, and how they can be used to create secure software.

By designing failures as expected and unexceptional outcomes, you completely eliminate the use of exceptions as part of the domain logic. By doing so, you’re able to either avoid or reduce the risk of many of the security issues you faced when designing your code with exceptions. Some of the security benefits of this approach are listed in table 9.1.