Event Field String Interpolation
Lambda event fields are directly interpolated into SQL strings using Ruby string interpolation or concatenation.
SQL injection vulnerability where untrusted event fields are concatenated into SQL strings and sent to mysql2 without parameters or proper escaping, potentially allowing attackers to alter queries to exfiltrate data, change records, bypass authorization, or run destructive database commands.
Configuration changes required - see explanation below.
Configuration changes required - see explanation below.
Lambda event fields are directly interpolated into SQL strings using Ruby string interpolation or concatenation.
Sourcery automatically identifies sql injection from aws lambda event data in mysql2 query and many other security issues in your codebase.