string concatenation
Joining pieces of text together into one string, for example with + in Python.
In more detail
Gluing caller text into a query, command or template is the root cause of injection. Once code and data share one string, the interpreter cannot tell them apart.
Related terms
- injection — A bug where untrusted data reaches an interpreter and part of it is read as code instead of as a value.
- prepared statement — A SQL statement with placeholders, such as ?, whose values are sent separately from the SQL text instead of pasted into it.
Taught in
- Injection In All Its Forms — Application Security & Threat Modeling for Engineers
- SQL Injection: The Exploit — Application Security & Threat Modeling for Engineers