Skip to content

What to look for

Files and uploads

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

Start lesson

0 of 2 completed

Reviews are marked on
CWE-434Unrestricted upload of a dangerous file typeCWE-22Path traversal
  1. 1
    File uploads

    A website that accepts an uploaded file keeps a file that a stranger wrote. The server must check the file and choose where the file is stored.

    Open the lesson

    Listen to an AI summary of File uploads

    0:00 / 0:35
  2. 2
    Paths and file names

    A file path is the list of folders that leads to a file. A file name sent by a visitor can lead to a file outside the folder the code meant to use.

    Open the lesson

    Listen to an AI summary of Paths and file names

    0:00 / 0:29