Fetching a URL without being used as a proxy
Lesson 11 of 27 · Injection and untrusted input · 3 min Get the course to watchTidepool adds a feature: paste a link to a logo and the invoice template uses it. The assistant writes a function that fetches whatever URL the customer gives. Your server now makes requests on a stranger's behalf, from inside your network, with access they do not have.
The rest of this lesson
- Where it can reach
- The check an assistant writes
- Check the address not the text
- Run it
- Where the check still fails
- The layer that does not trust your code
- 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.