github-advanced-security[bot] commented on code in PR #3715:
URL: https://github.com/apache/cxf/pull/3715#discussion_r4561062591
##########
core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java:
##########
@@ -112,4 +125,71 @@
}
}
+ private static long getMaxDecompressedSize(Message message) {
+ Object maxSize =
message.getContextualProperty(GZIP_MAX_DECOMPRESSED_SIZE);
+ if (maxSize instanceof Number) {
+ return ((Number)maxSize).longValue();
+ } else if (maxSize instanceof String) {
+ try {
+ return Long.parseLong(((String)maxSize).trim());
+ } catch (NumberFormatException ex) {
+ LOG.warning("Invalid value for " + GZIP_MAX_DECOMPRESSED_SIZE
+ ": " + maxSize);
Review Comment:
## CodeQL / Insertion of sensitive information into log files
This [potentially sensitive information](1) is written to a log file.
[Show more
details](https://github.com/apache/cxf/security/code-scanning/2260)
##########
core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java:
##########
@@ -112,4 +125,71 @@
}
}
+ private static long getMaxDecompressedSize(Message message) {
+ Object maxSize =
message.getContextualProperty(GZIP_MAX_DECOMPRESSED_SIZE);
+ if (maxSize instanceof Number) {
+ return ((Number)maxSize).longValue();
+ } else if (maxSize instanceof String) {
+ try {
+ return Long.parseLong(((String)maxSize).trim());
+ } catch (NumberFormatException ex) {
+ LOG.warning("Invalid value for " + GZIP_MAX_DECOMPRESSED_SIZE
+ ": " + maxSize);
Review Comment:
## CodeQL / Log Injection
This log entry depends on a [user-provided value](1).
This log entry depends on a [user-provided value](2).
This log entry depends on a [user-provided value](3).
[Show more
details](https://github.com/apache/cxf/security/code-scanning/2261)
--
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]