提问人:Steven Zhou 提问时间:10/10/2022 最后编辑:Your Common SenseSteven Zhou 更新时间:10/12/2022 访问量:308
如何处理checkmarx扫描的SQL_Injection和Second_Order_SQL_Injection漏洞?
How to handle SQL_Injection and Second_Order_SQL_Injection vulnerabilities scanned by checkmarx?
问:
SQL_Injection和Second_Order_SQL_Injection漏洞出现在使用spring data jpa框架的项目源代码中,使用checkmarx扫描
我该如何处理它们?你有什么建议吗,谢谢
- 在“password”中检测到注入漏洞
public interface AccRepository extends BaseRepository<Acc, String> {
@Query(value = "SELECT * FROM acc WHERE username = ?1 and password = ?2",nativeQuery = true)
Acc selectAcc(String username, String password);
}
答: 暂无答案
评论