Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Security · Think Like an Attacker · with code: Python · about 13 min to read

Play it as a journeyTutor comes with a plan

The thing you let in (deserialization and file uploads)

Application Hardening
Application Hardening · Open board

The two doors every app has: where the outside world’s data comes in, and where its own data goes back out. This lesson is the first door at its worst: not a text field, but a whole object or a whole file, handed over by someone you have never met.

Before you start. Application Hardening said to check what knocks, in one line that included “a file upload”. Web Vulnerabilities (the OWASP classics) showed what happens when an attacker’s text becomes a database query or a page. Review the fix (secure code review) had you review handlers that took a path or a field they should not have. This lesson is about two inputs that look like data and behave like instructions: a saved object that is rebuilt on arrival, and a file the user named and filled.

Lesson 22 of 39 in Security

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • November 2015: the bug in the library everybody had
  • Serialization: freezing an object so it can travel
  • Safe to read is not safe to use
  • Uploads: a file is three claims and some bytes
  • The cart door
  • The avatar door
  • What the extra rules cost you
  • Remove one defence, watch its test fail

Terms it explains: serialization, deserialization, allowlist, file signature, Antivirus, allowlist vs denylist, canonicalize, CVE, fail securely, hardening, input validation, lockfile, masked variable, OIDC-to-cloud, output encoding, SAST/DAST, SBOM, secret scanning, security headers, security misconfiguration, SLSA/sigstore, supply chain.

Review Security