-
Notifications
You must be signed in to change notification settings - Fork 312
Limit the maximum size of the location path in IAST vulnerabilities #9028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 1 performance improvements and 8 performance regressions! Performance is the same for 33 metrics, 11 unstable metrics.
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (997.111 ms) : 0, 997111
Total [baseline] (8.553 s) : 0, 8553301
Agent [candidate] (1.034 s) : 0, 1033684
Total [candidate] (8.578 s) : 0, 8578445
section iast
Agent [baseline] (1.133 s) : 0, 1133144
Total [baseline] (9.24 s) : 0, 9240308
Agent [candidate] (1.15 s) : 0, 1149859
Total [candidate] (9.179 s) : 0, 9179435
gantt
title insecure-bank - break down per module: candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (688.225 ms) : 0, 688225
BytebuddyAgent [candidate] (691.517 ms) : 0, 691517
GlobalTracer [baseline] (242.739 ms) : 0, 242739
GlobalTracer [candidate] (243.889 ms) : 0, 243889
AppSec [baseline] (30.309 ms) : 0, 30309
AppSec [candidate] (58.485 ms) : 0, 58485
Debugger [baseline] (6.08 ms) : 0, 6080
Debugger [candidate] (6.235 ms) : 0, 6235
Remote Config [baseline] (656.996 µs) : 0, 657
Remote Config [candidate] (671.148 µs) : 0, 671
Telemetry [baseline] (8.252 ms) : 0, 8252
Telemetry [candidate] (11.926 ms) : 0, 11926
section iast
BytebuddyAgent [baseline] (810.387 ms) : 0, 810387
BytebuddyAgent [candidate] (804.497 ms) : 0, 804497
GlobalTracer [baseline] (232.415 ms) : 0, 232415
GlobalTracer [candidate] (231.321 ms) : 0, 231321
AppSec [baseline] (25.918 ms) : 0, 25918
AppSec [candidate] (52.919 ms) : 0, 52919
Debugger [baseline] (5.835 ms) : 0, 5835
Debugger [candidate] (5.969 ms) : 0, 5969
Remote Config [baseline] (590.962 µs) : 0, 591
Remote Config [candidate] (598.728 µs) : 0, 599
Telemetry [baseline] (7.913 ms) : 0, 7913
Telemetry [candidate] (7.993 ms) : 0, 7993
IAST [baseline] (29.269 ms) : 0, 29269
IAST [candidate] (25.87 ms) : 0, 25870
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.001 s) : 0, 1000593
Total [baseline] (10.579 s) : 0, 10578594
Agent [candidate] (1.031 s) : 0, 1031447
Total [candidate] (10.543 s) : 0, 10542851
section appsec
Agent [baseline] (1.176 s) : 0, 1176184
Total [baseline] (10.682 s) : 0, 10681876
Agent [candidate] (1.179 s) : 0, 1179109
Total [candidate] (10.675 s) : 0, 10674514
section iast
Agent [baseline] (1.128 s) : 0, 1127652
Total [baseline] (10.82 s) : 0, 10820175
Agent [candidate] (1.155 s) : 0, 1155087
Total [candidate] (10.88 s) : 0, 10880166
section profiling
Agent [baseline] (1.245 s) : 0, 1245414
Total [baseline] (10.949 s) : 0, 10949090
Agent [candidate] (1.271 s) : 0, 1270746
Total [candidate] (10.944 s) : 0, 10944164
gantt
title petclinic - break down per module: candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (691.009 ms) : 0, 691009
BytebuddyAgent [candidate] (691.0 ms) : 0, 691000
GlobalTracer [baseline] (243.422 ms) : 0, 243422
GlobalTracer [candidate] (243.531 ms) : 0, 243531
AppSec [baseline] (30.237 ms) : 0, 30237
AppSec [candidate] (58.437 ms) : 0, 58437
Debugger [baseline] (6.065 ms) : 0, 6065
Debugger [candidate] (6.215 ms) : 0, 6215
Remote Config [baseline] (654.904 µs) : 0, 655
Remote Config [candidate] (733.755 µs) : 0, 734
Telemetry [baseline] (8.247 ms) : 0, 8247
Telemetry [candidate] (10.513 ms) : 0, 10513
section appsec
BytebuddyAgent [baseline] (713.331 ms) : 0, 713331
BytebuddyAgent [candidate] (708.331 ms) : 0, 708331
GlobalTracer [baseline] (236.046 ms) : 0, 236046
GlobalTracer [candidate] (234.958 ms) : 0, 234958
AppSec [baseline] (169.152 ms) : 0, 169152
AppSec [candidate] (179.491 ms) : 0, 179491
Debugger [baseline] (5.824 ms) : 0, 5824
Debugger [candidate] (5.806 ms) : 0, 5806
Remote Config [baseline] (600.769 µs) : 0, 601
Remote Config [candidate] (622.114 µs) : 0, 622
Telemetry [baseline] (8.203 ms) : 0, 8203
Telemetry [candidate] (7.357 ms) : 0, 7357
IAST [baseline] (22.11 ms) : 0, 22110
IAST [candidate] (21.725 ms) : 0, 21725
section iast
BytebuddyAgent [baseline] (806.29 ms) : 0, 806290
BytebuddyAgent [candidate] (807.775 ms) : 0, 807775
GlobalTracer [baseline] (231.362 ms) : 0, 231362
GlobalTracer [candidate] (232.282 ms) : 0, 232282
AppSec [baseline] (27.385 ms) : 0, 27385
AppSec [candidate] (51.967 ms) : 0, 51967
Debugger [baseline] (5.78 ms) : 0, 5780
Debugger [candidate] (6.02 ms) : 0, 6020
Remote Config [baseline] (576.18 µs) : 0, 576
Remote Config [candidate] (609.46 µs) : 0, 609
Telemetry [baseline] (7.87 ms) : 0, 7870
Telemetry [candidate] (7.963 ms) : 0, 7963
IAST [baseline] (27.654 ms) : 0, 27654
IAST [candidate] (27.582 ms) : 0, 27582
section profiling
ProfilingAgent [baseline] (102.662 ms) : 0, 102662
ProfilingAgent [candidate] (107.286 ms) : 0, 107286
BytebuddyAgent [baseline] (679.784 ms) : 0, 679784
BytebuddyAgent [candidate] (676.051 ms) : 0, 676051
GlobalTracer [baseline] (361.695 ms) : 0, 361695
GlobalTracer [candidate] (361.36 ms) : 0, 361360
AppSec [baseline] (31.161 ms) : 0, 31161
AppSec [candidate] (62.489 ms) : 0, 62489
Debugger [baseline] (11.965 ms) : 0, 11965
Debugger [candidate] (6.144 ms) : 0, 6144
Remote Config [baseline] (657.114 µs) : 0, 657
Remote Config [candidate] (669.517 µs) : 0, 670
Telemetry [baseline] (8.684 ms) : 0, 8684
Telemetry [candidate] (8.085 ms) : 0, 8085
Profiling [baseline] (102.687 ms) : 0, 102687
Profiling [candidate] (107.31 ms) : 0, 107310
LoadParameters
See matching parameters
SummaryFound 2 performance improvements and 1 performance regressions! Performance is the same for 9 metrics, 12 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section baseline
no_agent (4.285 ms) : 4237, 4333
. : milestone, 4285,
iast (9.402 ms) : 9230, 9574
. : milestone, 9402,
iast_FULL (14.005 ms) : 13729, 14281
. : milestone, 14005,
iast_GLOBAL (10.291 ms) : 10110, 10473
. : milestone, 10291,
profiling (8.947 ms) : 8803, 9092
. : milestone, 8947,
tracing (7.982 ms) : 7850, 8114
. : milestone, 7982,
section candidate
no_agent (4.408 ms) : 4358, 4459
. : milestone, 4408,
iast (9.188 ms) : 9036, 9339
. : milestone, 9188,
iast_FULL (14.102 ms) : 13822, 14382
. : milestone, 14102,
iast_GLOBAL (10.289 ms) : 10104, 10475
. : milestone, 10289,
profiling (8.91 ms) : 8761, 9059
. : milestone, 8910,
tracing (7.549 ms) : 7444, 7655
. : milestone, 7549,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section baseline
no_agent (36.875 ms) : 36585, 37165
. : milestone, 36875,
appsec (47.687 ms) : 47262, 48111
. : milestone, 47687,
code_origins (43.931 ms) : 43575, 44288
. : milestone, 43931,
iast (46.03 ms) : 45627, 46433
. : milestone, 46030,
profiling (47.567 ms) : 47129, 48005
. : milestone, 47567,
tracing (44.023 ms) : 43662, 44384
. : milestone, 44023,
section candidate
no_agent (36.881 ms) : 36592, 37170
. : milestone, 36881,
appsec (47.576 ms) : 47170, 47983
. : milestone, 47576,
code_origins (45.57 ms) : 45192, 45948
. : milestone, 45570,
iast (45.728 ms) : 45321, 46135
. : milestone, 45728,
profiling (48.959 ms) : 48511, 49407
. : milestone, 48959,
tracing (42.428 ms) : 42096, 42760
. : milestone, 42428,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section baseline
no_agent (15.542 s) : 15542000, 15542000
. : milestone, 15542000,
appsec (14.737 s) : 14737000, 14737000
. : milestone, 14737000,
iast (18.589 s) : 18589000, 18589000
. : milestone, 18589000,
iast_GLOBAL (17.853 s) : 17853000, 17853000
. : milestone, 17853000,
profiling (15.291 s) : 15291000, 15291000
. : milestone, 15291000,
tracing (14.819 s) : 14819000, 14819000
. : milestone, 14819000,
section candidate
no_agent (15.564 s) : 15564000, 15564000
. : milestone, 15564000,
appsec (14.834 s) : 14834000, 14834000
. : milestone, 14834000,
iast (18.453 s) : 18453000, 18453000
. : milestone, 18453000,
iast_GLOBAL (17.673 s) : 17673000, 17673000
. : milestone, 17673000,
profiling (15.11 s) : 15110000, 15110000
. : milestone, 15110000,
tracing (14.866 s) : 14866000, 14866000
. : milestone, 14866000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.51.0-SNAPSHOT~555d6524ca, baseline=1.51.0-SNAPSHOT~b7fd382549
dateFormat X
axisFormat %s
section baseline
no_agent (1.474 ms) : 1463, 1485
. : milestone, 1474,
appsec (2.399 ms) : 2350, 2447
. : milestone, 2399,
iast (2.172 ms) : 2111, 2233
. : milestone, 2172,
iast_GLOBAL (2.219 ms) : 2157, 2280
. : milestone, 2219,
profiling (2.043 ms) : 1993, 2093
. : milestone, 2043,
tracing (2.01 ms) : 1962, 2057
. : milestone, 2010,
section candidate
no_agent (1.474 ms) : 1463, 1486
. : milestone, 1474,
appsec (2.39 ms) : 2342, 2438
. : milestone, 2390,
iast (2.189 ms) : 2128, 2250
. : milestone, 2189,
iast_GLOBAL (2.216 ms) : 2155, 2277
. : milestone, 2216,
profiling (2.045 ms) : 1995, 2094
. : milestone, 2045,
tracing (2.012 ms) : 1965, 2059
. : milestone, 2012,
|
@@ -61,6 +63,13 @@ public void onXss(@Nonnull CharSequence s, @Nullable String file, int line) { | |||
checkInjection(VulnerabilityType.XSS, s, new FileAndLineLocationSupplier(file, line)); | |||
} | |||
|
|||
private static String truncate(final String s) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do it for all vulns, in case this happens in other places?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I recall correctly, we only use the LocationSupplier approach for XSS and Unvalidated redirect, checking the codo for the unvalidated redirects seems that only is used by this advice
public static class SpringAdvice {
@Advice.OnMethodExit(suppress = Throwable.class)
@Sink(VulnerabilityTypes.SPRING_RESPONSE)
public static void checkReturnedObject(
@Advice.Return HandlerMethodReturnValueHandler handler,
@Advice.Argument(0) final Object value,
@Advice.Argument(1) MethodParameter returnType) {
final UnvalidatedRedirectModule unvalidatedRedirectModule =
InstrumentationBridge.UNVALIDATED_REDIRECT;
final XssModule xssModule = InstrumentationBridge.XSS;
if (handler != null && value != null && returnType != null) {
String clazz = returnType.getMethod().getDeclaringClass().getName();
String method = returnType.getMethod().getName();
if (unvalidatedRedirectModule != null && value instanceof AbstractUrlBasedView) {
unvalidatedRedirectModule.onRedirect(
((AbstractUrlBasedView) value).getUrl(), clazz, method);
} else if (unvalidatedRedirectModule != null && value instanceof ModelAndView) {
unvalidatedRedirectModule.onRedirect(((ModelAndView) value).getViewName(), clazz, method);
} else if (value instanceof String) {
if (xssModule != null && handler instanceof RequestResponseBodyMethodProcessor) {
xssModule.onXss((String) value, clazz, method);
} else if (unvalidatedRedirectModule != null) {
unvalidatedRedirectModule.onRedirect((String) value, clazz, method);
}
}
}
}
}
So IMHO we are safe with this but we can add some default behavior or comment to warn this in the LocationSuplier just to be aware in future implementations
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | [com.google.errorprone:error_prone_annotations](https://errorprone.info) ([source](https://github.com/google/error-prone)) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.39.0` -> `2.40.0` | | [org.apache.commons:commons-lang3](https://commons.apache.org/proper/commons-lang/) ([source](https://gitbox.apache.org/repos/asf/commons-lang.git)) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `3.17.0` -> `3.18.0` | | [org.jetbrains.kotlinx.binary-compatibility-validator](https://github.com/Kotlin/binary-compatibility-validator) | plugin | misk/gradle/libs.versions.toml | gradle | patch | `0.18.0` -> `0.18.1` | | [com.datadoghq:dd-trace-api](https://github.com/datadog/dd-trace-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `1.50.1` -> `1.51.0` | | [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.77` -> `2.31.78` | | [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.77` -> `2.31.78` | | [software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.77` -> `2.31.78` | | [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.77` -> `2.31.78` | | [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.77` -> `2.31.78` | | [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.77` -> `2.31.78` | | [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.77` -> `2.31.78` | --- ### Release Notes <details> <summary>google/error-prone (com.google.errorprone:error_prone_annotations)</summary> ### [`v2.40.0`](https://github.com/google/error-prone/releases/tag/v2.40.0): Error Prone 2.40.0 Changes: - Bug fixes and improvements - Releases (including snapshots) have migrated from [OSSRH to the Central Publisher Portal](https://central.sonatype.org/pages/ossrh-eol/#process-to-migrate) Full changelog: google/error-prone@v2.39.0...v2.40.0 </details> <details> <summary>Kotlin/binary-compatibility-validator (org.jetbrains.kotlinx.binary-compatibility-validator)</summary> ### [`v0.18.1`](https://github.com/Kotlin/binary-compatibility-validator/releases/tag/0.18.1) [Compare Source](Kotlin/binary-compatibility-validator@0.18.0...0.18.1) #### What's Changed - Fixed a bug preventing use of cross-compilation support during KLIB dump validation \[[#​304](https://github.com/Kotlin/binary-compatibility-validator/issues/304)]\[[#​306](https://github.com/Kotlin/binary-compatibility-validator/issues/306)] </details> <details> <summary>datadog/dd-trace-java (com.datadoghq:dd-trace-api)</summary> ### [`v1.51.0`](https://github.com/DataDog/dd-trace-java/releases/tag/v1.51.0): 1.51.0 ### Components #### Application Security Management (IAST) - 🐛 Fix verify error when ctor params are used after a call site ([#​9083](DataDog/dd-trace-java#9083) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - 🐛 Limit the maximum size of the location path in IAST vulnerabilities ([#​9028](DataDog/dd-trace-java#9028) - [@​jandro996](https://github.com/jandro996)) - 🐛 Fix IAST gRPC handler with null superclass ([#​8984](DataDog/dd-trace-java#8984) - [@​smola](https://github.com/smola)) - ✨ Optimize IAST Vulnerability Detection ([#​8885](DataDog/dd-trace-java#8885) - [@​jandro996](https://github.com/jandro996)) #### Application Security Management (WAF) - ✨ Upgrade libddwaf-java to 15.0.0 ([#​9022](DataDog/dd-trace-java#9022) - [@​sezen-datadog](https://github.com/sezen-datadog)) - ✨ Extract RestEasy json body response schemas ([#​9015](DataDog/dd-trace-java#9015) - [@​jandro996](https://github.com/jandro996)) - ✨ Extract Jersey json body response schemas ([#​9014](DataDog/dd-trace-java#9014) - [@​jandro996](https://github.com/jandro996)) - ✨ Extract Ratpack json body response schemas ([#​9013](DataDog/dd-trace-java#9013) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Enable API Security by default and make it lazy loading ([#​9009](DataDog/dd-trace-java#9009) - [@​smola](https://github.com/smola)) - ✨ Extract Vert.x json body response schemas ([#​9001](DataDog/dd-trace-java#9001) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Extract Play json body response schemas ([#​8995](DataDog/dd-trace-java#8995) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - 🐛 Fix Jackson nodes introspection for request/response schema extraction ([#​8980](DataDog/dd-trace-java#8980) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Extract Spring json body response schemas ([#​8938](DataDog/dd-trace-java#8938) - [@​sezen-datadog](https://github.com/sezen-datadog)) - ✨ Default obfuscation regexp update ([#​8937](DataDog/dd-trace-java#8937) - [@​sezen-datadog](https://github.com/sezen-datadog)) #### Build & Tooling - ✨ Cancel GitLab running pipeline on new PR push ([#​9023](DataDog/dd-trace-java#9023) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) - ✨ Migrate publishing to Maven Central Portal ([#​8807](DataDog/dd-trace-java#8807) - [@​sarahchen6](https://github.com/sarahchen6)) #### Continuous Integration Visibility - 🐛 Fix Test Optimization to work with JDK 24 ([#​9114](DataDog/dd-trace-java#9114) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Add repo root as safe directory on git client creation ([#​9033](DataDog/dd-trace-java#9033) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Add PR number tag and improve PR information building ([#​8990](DataDog/dd-trace-java#8990) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Update impacted tests logic ([#​8923](DataDog/dd-trace-java#8923) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) #### Data Streams Monitoring - 🧹 Clean up DSM context injection ([#​8776](DataDog/dd-trace-java#8776) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) #### Database Monitoring - 🐛 Set trace\_injected in try block ([#​9025](DataDog/dd-trace-java#9025) - [@​natashadada](https://github.com/natashadada)) #### Dynamic Instrumentation - 🐛 Add source file tracking enable option ([#​9115](DataDog/dd-trace-java#9115) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Add java.util.Date support ([#​9111](DataDog/dd-trace-java#9111) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Update file probe format ([#​9047](DataDog/dd-trace-java#9047) - [@​jpbempel](https://github.com/jpbempel)) - ✨ add safe local var hoisting ([#​9034](DataDog/dd-trace-java#9034) - [@​jpbempel](https://github.com/jpbempel)) - 🧹 Add new config for debugger upload interval ([#​8959](DataDog/dd-trace-java#8959) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Enable Code Origin with Dynamic instrumentation ([#​8940](DataDog/dd-trace-java#8940) - [@​jpbempel](https://github.com/jpbempel)) #### ML Observability (LLMObs) - 💡 LLM Observability SDK ([#​8781](DataDog/dd-trace-java#8781) - [@​gary-huang](https://github.com/gary-huang), [@​nayeem-kamal](https://github.com/nayeem-kamal)) #### Metrics - 🐛 Ensure client stat reporter is started when the agent is not available at bootstrap ([#​9082](DataDog/dd-trace-java#9082) - [@​amarziali](https://github.com/amarziali)) - ✨ Create metric: appsec.waf.config\_errors ([#​8394](DataDog/dd-trace-java#8394) - [@​sezen-datadog](https://github.com/sezen-datadog)) #### Platform components - ✨ Introduce environment component ([#​9071](DataDog/dd-trace-java#9071) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) #### Profiling - 🐛 Remove annoying warning for smap event parsing ([#​9119](DataDog/dd-trace-java#9119) - [@​jbachorik](https://github.com/jbachorik)) - 🐛 Fix ByteCountingInputStream when reading past EOF ([#​8988](DataDog/dd-trace-java#8988) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) #### Realtime User Monitoring - ✨ Add RUM SDK injection for servlet based web servers ([#​9110](DataDog/dd-trace-java#9110) - [@​PerfectSlayer](https://github.com/PerfectSlayer) [@​amarziali](https://github.com/amarziali)) #### Telemetry - ✨ Update the config origin metric to match what it's mapping ([#​9045](DataDog/dd-trace-java#9045) - [@​sezen-datadog](https://github.com/sezen-datadog)) #### Testing - ✨ Add testing for latest stable version (JDK 24) ([#​8875](DataDog/dd-trace-java#8875) - [@​sarahchen6](https://github.com/sarahchen6)) #### Trace context propagation - 🐛 Fix bug with dropping baggage when `TracePropagationBehaviorExtract=IGNORE` ([#​9037](DataDog/dd-trace-java#9037) - [@​mhlidd](https://github.com/mhlidd)) - 🐛 Fix ArrayIndexOutOfBoundsException in PercentEscaper ([#​9032](DataDog/dd-trace-java#9032) - [@​mhlidd](https://github.com/mhlidd)) #### Tracer core - 🐛 Fix `Error` handling for trace interceptors ([#​9097](DataDog/dd-trace-java#9097) - [@​AlexeyKuznetsov-DD](https://github.com/AlexeyKuznetsov-DD)) - 💡 Add wildcard feature for `DD_TRACE_HEADER_TAGS` and enabling for Http Response headers ([#​9067](DataDog/dd-trace-java#9067) - [@​mhlidd](https://github.com/mhlidd)) #### Tracer public API - 💡 Add LLM Observability SDK ([#​8781](DataDog/dd-trace-java#8781) - [@​gary-huang](https://github.com/gary-huang)) ### Instrumentations #### Akka instrumentation - 🐛 Fix NPE in akka-http and pekko-http integrations ([#​9019](DataDog/dd-trace-java#9019) - [@​mcculls](https://github.com/mcculls)) #### Eclipse Vert.x instrumentation - ✨ Extract Vert.x json body response schemas ([#​9001](DataDog/dd-trace-java#9001) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Write http.route tag as soon as possible in vert.x ([#​8952](DataDog/dd-trace-java#8952) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) #### JAX-WS instrumentation - 💡⚠️ Enable jax-ws integration by default ([#​9030](DataDog/dd-trace-java#9030) - [@​bm1549](https://github.com/bm1549)) - ✨ Extract Jersey json body response schemas ([#​9014](DataDog/dd-trace-java#9014) - [@​jandro996](https://github.com/jandro996)) #### Mule instrumentation - 🐛 Propagate grizzly http span in filters if nothing is active ([#​9016](DataDog/dd-trace-java#9016) - [@​amarziali](https://github.com/amarziali)) #### Play Framework instrumentation - ✨ Extract Play json body response schemas ([#​8995](DataDog/dd-trace-java#8995) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) #### Ratpack instrumentation - ✨ Extract Ratpack json body response schemas ([#​9013](DataDog/dd-trace-java#9013) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) #### Spring instrumentation - ✨ Extract Spring json body response schemas ([#​8938](DataDog/dd-trace-java#8938) - [@​sezen-datadog](https://github.com/sezen-datadog)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am every weekday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). GitOrigin-RevId: 649b690d4c9d7dcb572c457f0802b42b8e3e682e
…9028) What Does This Do Add truncation to path, class and method if it's necessary for LocationSuppliers to report XSS vulnerabilities Motivation incident-39654 In this incident, it was reported that the location.path field of an IAST vulnerability was populated with a large HTML payload, which caused a backend error and prevented the vulnerability from being reported. This occurred specifically with an XSS vulnerability located in a Thymeleaf template. Normally, the location.path is extracted from the stacktrace, so this kind of behavior is unusual. However, in cases where vulnerabilities occur in template-based frameworks, we use a different approach to improve precision — specifying the template name instead of the compiled class in the vulnerability location. In Thymeleaf, the instrumented method getTemplateName may return a full HTML document instead of just the template name, as originally expected. To guard against these cases, we’ve decided to truncate the values of path, class, and method when they are generated using suppliers rather than stacktrace-based extraction. (cherry picked from commit b3e2ecd)
What Does This Do
Add truncation to path, class and method if it's necessary for LocationSuppliers to report XSS vulnerabilities
Motivation
incident-39654
In this incident, it was reported that the location.path field of an IAST vulnerability was populated with a large HTML payload, which caused a backend error and prevented the vulnerability from being reported.
This occurred specifically with an XSS vulnerability located in a Thymeleaf template.
Normally, the location.path is extracted from the stacktrace, so this kind of behavior is unusual. However, in cases where vulnerabilities occur in template-based frameworks, we use a different approach to improve precision — specifying the template name instead of the compiled class in the vulnerability location.
In Thymeleaf, the instrumented method getTemplateName may return a full HTML document instead of just the template name, as originally expected.
To guard against these cases, we’ve decided to truncate the values of path, class, and method when they are generated using suppliers rather than stacktrace-based extraction.
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]