How to prevent SQL Injections with User-Search-Terms in Vapor 4 (Fluent 4)
问题 I am currently implementing a Vapor 4 application, which will be used to manage machines. The user should be able to search for a machine name, which I accomplished by .filter(Machine.path(for: \Machine.$name), .contains(inverse: false, .anywhere), term) where term is an arbitrary String provided by the user. The code itself works as intended, but I was wondering if there is the possibility of a SQL Injection vulnerability (or other attacks). My Question: Is SQL Injection (or other attacks)