Security Reference
Build your understanding of common web security risks.
Background reading on common web security risks. This is not your checklist, and not every item here exists in the portal.
OWASP Top 10 (2021)
A01 Broken Access Control
Users can access records or actions outside their permissions. For example, a resident might be able to view someone else’s profile by changing a record ID.
A02 Cryptographic Failures
Sensitive information is exposed because protection is absent or inappropriate. Examples include transmitting private data over HTTP or storing passwords without secure hashing.
A03 Injection (including SQL injection and cross-site scripting)
Untrusted input is interpreted as a database command or browser script. Parameterized queries and context-aware output encoding separate data from executable instructions.
A04 Insecure Design
Security is missing from the design of a feature. An example is a password recovery process that relies on easily guessed personal information.
A05 Security Misconfiguration
Unsafe defaults or incorrect settings expose the system. Examples include verbose error pages, unnecessary services, and publicly accessible backup files.
A06 Vulnerable and Outdated Components
A system uses software with known security flaws. Keeping an inventory and updating dependencies reduces exposure to already documented attacks.
A07 Identification and Authentication Failures
Weak authentication or session handling allows impersonation. Examples include unlimited password guesses or session tokens that remain valid after logout.
A08 Software and Data Integrity Failures
Code or data is trusted without verifying its integrity. An example is installing an update from an unverified source or accepting modified serialized data.
A09 Security Logging and Monitoring Failures
Suspicious activity is not recorded or noticed. Without useful logs and alerts, repeated attacks can continue without investigation.
A10 Server-Side Request Forgery
An attacker tricks a server into requesting an unintended destination. A URL-fetching feature might be abused to reach an internal service.
Other risks worth knowing
Cross-Site Request Forgery (CSRF)
A malicious site causes a signed-in browser to submit an unwanted action. Use anti-CSRF tokens and appropriate cookie settings for state-changing requests.
Unrestricted file upload
Accepting arbitrary files can expose malicious content or executable code. Validate file type and size, rename uploads, and store them outside executable directories.
Session fixation and session hijacking
An attacker sets or steals a session identifier to impersonate a user. Regenerate sessions after login and protect cookies with appropriate flags and HTTPS.
Information disclosure through error messages
Detailed errors can reveal paths, queries, or configuration. Show safe messages to users and keep diagnostic details in protected logs.
Directory listing and exposed files
A server lists files or serves backups and configuration documents. Disable directory indexes and restrict access to files that are not intended to be public.
Brute-force attacks and missing rate limits
Repeated login attempts can guess weak credentials. Use rate limits, monitoring, and carefully designed temporary lockouts.
Missing security headers
Absent browser security policies increase exposure to script injection or clickjacking. Configure suitable headers such as Content-Security-Policy and X-Content-Type-Options.
Connection to course topics
| Course topic | Where it shows up in web security |
|---|---|
| Symmetric ciphers (Topic 3) | Encrypting stored data |
| Public key cryptosystems (Topic 4) | Certificates, key exchange |
| PKI (Topic 4) | Certificate authorities, trust chains |
| Transport Layer Security (Topic 6) | HTTPS |
| Classic & modern encryption (Topic 8) | Hashing vs encryption vs encoding |
| Firewalls (Topic 8) | Restricting what the server exposes |