Skip to content

Learn

How to review code for security, one weakness at a time.

Start here

Getting started with secure code review

People make mistakes when they write programs. A secure code review is reading a program to find the mistakes that could cause harm.

Start learning
1

Getting started

What a secure code review is and how to run one.

Secure code review

What a secure code review is, what a diff is, and the other ways software is tested.

5 lessons

Listen to an AI summary of Secure code review

0:00 / 0:23
Methodology

Deciding what to look at first, and why.

6 lessons

Listen to an AI summary of Methodology

0:00 / 0:26
Your first challenge

The weakness in the first challenge, then how the challenges work, one step at a time.

4 lessons

Listen to an AI summary of Your first challenge

0:00 / 0:25
2

What to look for

What each kind of weakness looks like in a diff.

Authentication and authorisation

Who the user is, and what the user may do.

CWE-287CWE-384CWE-640CWE-639CWE-862CWE-863
7 lessons

Listen to an AI summary of Authentication and authorisation

0:00 / 0:30
Business logic

Rules the software should enforce, such as who may act, how many times, in what order and with what values.

CWE-840CWE-841CWE-837CWE-1284CWE-770CWE-400CWE-602CWE-362CWE-367
5 lessons

Listen to an AI summary of Business logic

0:00 / 0:28
Injection

Input that reaches an interpreter as code, such as a SQL query, a shell command, a template, a page in the browser or a prompt.

CWE-89CWE-78CWE-94CWE-502CWE-79CWE-1427LLM01
7 lessons

Listen to an AI summary of Injection

0:00 / 0:32
Sensitive data

Secrets, cryptography and TLS.

CWE-798CWE-327CWE-200
3 lessons

Listen to an AI summary of Sensitive data

0:00 / 0:24
Logging and errors

What code records, and what code shows when a failure happens.

CWE-778CWE-532CWE-209
2 lessons

Listen to an AI summary of Logging and errors

0:00 / 0:22
Files and uploads

Files people upload, and file names that come from a request.

CWE-434CWE-22
2 lessons

Listen to an AI summary of Files and uploads

0:00 / 0:24
Requests and redirects

A redirect, and a request the server makes, to an address the user chose.

CWE-601CWE-918
2 lessons

Listen to an AI summary of Requests and redirects

0:00 / 0:20
Security misconfiguration

Framework settings, debug and error settings, and cookie settings.

CWE-16CWE-209
1 lesson

Listen to an AI summary of Security misconfiguration

0:00 / 0:22
Browser code

The same origin policy, messages and storage in the browser, and requests another website starts.

CWE-346CWE-942CWE-352
4 lessons

Listen to an AI summary of Browser code

0:00 / 0:28
Vulnerable components

Dependencies, and what a change to them brings in.

CWE-494CWE-829
1 lesson

Listen to an AI summary of Vulnerable components

0:00 / 0:20
Memory safety

Buffer overruns, format strings, integer overflows and use after free, in C and C++.

CWE-787CWE-122CWE-134CWE-190CWE-191CWE-416
2 lessons

Listen to an AI summary of Memory safety

0:00 / 0:21
Checklist

What to check, in one place.

1 lesson

Listen to an AI summary of Checklist

0:00 / 0:12