github-advanced-security[bot] commented on code in PR #3280:
URL: https://github.com/apache/cxf/pull/3280#discussion_r3520892197


##########
rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/common/CryptoLoader.java:
##########
@@ -85,10 +86,11 @@
     }
 
     public static Crypto loadCryptoFromURL(URL url) throws IOException, 
WSSecurityException {
+        URIResolver.checkAllowedScheme(url);
         Properties props = new Properties();
-        InputStream in = url.openStream();
-        props.load(in);
-        in.close();
+        try (InputStream in = url.openStream()) {

Review Comment:
   ## CodeQL / Server-side request forgery
   
   Potential server-side request forgery due to a [user-provided value](1).
   Potential server-side request forgery due to a [user-provided value](2).
   Potential server-side request forgery due to a [user-provided value](3).
   
   [Show more 
details](https://github.com/apache/cxf/security/code-scanning/2241)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to