繁体   English   中英

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

[英]HTTP request redirections vulnerability does not detect with SonarLint plugin and SonarQube server

一旦我们使用 sonarCube 和 SonarLint eclipse 插件执行 static 代码分析,它们都无法检测到以下代码段中的漏洞。 但这已根据 sonarsource web 站点的规则定义为漏洞。

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 开发人员版及更高版本。

请参阅Jean-BaptisteSonarSource 社区中问题的答案

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM