Skip to lesson
  1. Learn
  2. See
  3. Try
  4. Make

Spot unsafe code in an answer

What this lesson is about

Find the answer that works and still should not be used. It deletes, it leaks, or it trusts any input.

A submitted program cleans up the upload folder on your office server, and every test it came with passed. What now?

Why this matters

Correct and safe are two different questions, and tests only answer the first. An answer can pass everything and still delete a folder, send a file outside, or run whatever a user typed. Saying so is the sentence a reviewer is paid for.

Lesson 8 of 10 on Coding for evaluation worknextMake one contribution to a projectPart 3 ends in a work sample you can send

Read the primary or official source: Python documentation · subprocess security