Code review
String concatenation
One of the possible sinks in code when it comes to SQL Injection is using string concatenation instead of parametrized queries:
Vulnerable code samples:
Pasting the data directly from parameter without prepared statements
Concatenation
Non-vulnerable code sample:
Narrowing the search
Usually web applications have huge amounts of code. That is why we often have to use regexes in order to search for queries.
Sample regex searching (in notepad++)
Last updated