【发布时间】:2021-02-06 04:42:11
【问题描述】:
在我的项目中,资源注入问题出现在创建新 URL(资源)(四十次静态扫描)时。 如何解决这个问题?
String username = "james";
String resource = "https://someWebsite.com/api"+username;
URL url = new URL(resource); //here it is giving resource injection issue in fortify scan
System.setProperty("https.proxySet", "true");
System.setProperty("https.proxyHost", "11.09.11.111");
System.setProperty("https.proxyPort", "90");
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
【问题讨论】:
-
第一步是了解调查结果告诉你什么。你在这个代码 sn-p 中做错了什么?我可以告诉你这是第 2 行,所以有一个很大的提示。
标签: java spring security spring-security esapi