web-security

General

Factors to consider

STRIDE model

STRIDE model includes a set of threats:

Spoofing

Implies a threat of forged or stolen identities, used to gain authentication.

Tampering

Modification restriction bypass.

Repudiation

Claim of non-responsibility, possible due to a lack of evidence.

Information disclosure

Read restriction bypass.

Denial of Service

Malicious overuse of the application's resources.

Elevation of privilege

Authentication mechanism bypass.

Design principles

Gatekeeper model

Going from least critical points to the most important user should encounter an increasing amount of gatekeepers - layers of defence. A secure application should always be guarded by more layers than necessary. An example of the gatekeeper model is the authorisation/authentication pair.

SSL/TLS

^ Just use Let's Encrypt certificates.

CA signs certificates, browsers have a collection of CA and trust their signatures, i.e. network of trust. Certificates use X.509 for signatures.