Web and API Security, lesson 1
Untrusted input and injection
Keep data and code apart, so input can never become a command.
Your app passes text to programs that read some characters as instructions: a database, a shell, the file system, a template engine that fills values into a page. When your code builds their input by joining strings, a user's text can change what runs. You'll follow input to each of these places and use the form that keeps data as data. You need to know what a web request and a database are.
Part of Pro
In this lesson
- Where input turns into instructions
- Parameters for queries, argument lists for commands
- Paths and templates
Cybersecurity comes with Pro: every lesson in every module.
Web and API Security overviewSpotted a mistake? Tell us.