Paths and uploads
Lesson 10 of 27 · Injection and untrusted input · 2 min Get the course to watchTidepool lets customers attach a receipt to an invoice, and download it later. The assistant stores the file under the name the customer chose and serves it by joining a folder and a name. That join is where a download endpoint turns into a way to read any file on the server.
The rest of this lesson
- Dots and slashes
- Resolve then check
- Common path not starts with
- Better still never use their name
- Uploads need limits too
- What to keep
The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Secure the code AI writes.