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


##########
rt/features/logging/src/main/java/org/apache/cxf/ext/logging/AbstractLoggingInterceptor.java:
##########
@@ -172,6 +177,25 @@
         
     }
     
+    private static String extractHeaders(String str) {
+        // We know that content header is present, let's start from that
+        final Matcher m = CONTENT_TYPE_PATTERN.matcher(str);

Review Comment:
   ## Polynomial regular expression used on uncontrolled data
   
   This [regular expression](1) that depends on a [user-provided value](2) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](3) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](4) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](5) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](6) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](7) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](8) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](9) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   This [regular expression](1) that depends on a [user-provided value](10) may 
run slow on strings starting with 'Content-Type:' and with many repetitions of 
'Content-Type:'.
   
   [Show more 
details](https://github.com/apache/cxf/security/code-scanning/2206)



-- 
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: dev-unsubscr...@cxf.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to