Hi Stack I need some help please.
Im building an intentionally vulnerable local app. And I need a parameter to not have validation because the app will be for developers to test security vulnerabilities like SQL injection and XSS. I am struglling to find a way to make a query vulnerable to SQL injection using local DB JPA UserRespository but the only query it lets me is the following.
@Repository
public interface UserRespository extends CrudRepository<User,Long>{
@Query(value="SELECT * FROM USERS WHERE name = :name", nativeQuery=false)
User VulnerableQuery(String name);
}
So I cant actually trigget an SQL injection. Does anybody know any other way?