【发布时间】:2018-04-01 02:21:35
【问题描述】:
我有这个 Java 控制器:
@Controller
public class AuthenticationController extends AbstractController {
@RequestMapping(value = Constantes.MAPPING_AUTH_BASE_ASP, method = { RequestMethod.POST })
public String authenticate(@Valid ComunicationWithAspRequest comunicationWithAspRequest, BindingResult result,
RedirectAttributes redirectAttributes, HttpSession sesion) throws Exception {
...
...
...
}
}
当我在 Fortify 中扫描我的代码时,对象 comunicationWithAspRequest 会导致批量分配:不安全的 Binder 配置漏洞。是否可以控制绑定过程中使用哪些 HTTP 请求参数以及忽略哪些?
【问题讨论】: