gpt4 book ai didi

java - 使用 SonarLint 插件和 SonarQube 服务器未检测到 HTTP 请求重定向漏洞

转载 作者:行者123 更新时间:2023-12-03 11:20:13 29 4
gpt4 key购买 nike

一旦我们使用 sonarCube 和 SonarLint eclipse 插件进行静态代码分析,它们都无法检测到以下代码段中的漏洞。但这已被定义为 Sonar 源网站规则下的漏洞。

protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String location = req.getParameter("url");
resp.sendRedirect(location); // Noncompliant
}
引用
https://rules.sonarsource.com/java/RSPEC-5146

最佳答案

此规则以及其他与安全相关的规则适用于 SonarQube 开发人员版及更高版本。
引用SonarSource Community中问题的答案来自 Jean-Baptiste

关于java - 使用 SonarLint 插件和 SonarQube 服务器未检测到 HTTP 请求重定向漏洞,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65068690/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com