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


##########
core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java:
##########
@@ -593,12 +594,16 @@
                     final boolean followUrls = 
Boolean.valueOf(SystemPropertyAction
                         .getProperty(ATTACHMENT_XOP_FOLLOW_URLS_PROPERTY, 
"false"));
                     if (followUrls) {
-                        return new URLDataSource(new URL(contentId));
+                        final URL remoteUrl = new URL(contentId);
+                        URIResolver.checkAllowedScheme(remoteUrl);
+                        return new URLDataSource(remoteUrl);

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).
   Potential server-side request forgery due to a [user-provided value](4).
   
   [Show more 
details](https://github.com/apache/cxf/security/code-scanning/2242)



-- 
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