【发布时间】:2021-02-04 16:27:41
【问题描述】:
然后,该元素的值在没有经过适当过滤或编码的情况下流经代码,最终在方法 RepositoryClass 中显示给用户。这可能会启用存储的跨站点脚本攻击。 我没有向用户显示从数据库检索到的任何数据。
如何解决这个问题?或者这是误报? 我有以下代码 sn-p
@RestController
public class TestController {
@GetMapping("/date")
public String m1(@Pathvariable String date) {
// call to repository
List<Employees> employeeList= repositoryClass.m1(date);
// then i send this employeeList to kafka topic using Kafka Template
return "Procedure ran ";
// @RestController
public class RepositoryClass {
void List<Employees> m1(String date )
{
List<Employees> employeeList = jdbcTemplate.execute(date); //call to procdure to get employeeList
}
}
【问题讨论】:
标签: java spring-boot security owasp checkmarx