-
Notifications
You must be signed in to change notification settings - Fork 312
🍒 9028 - Limit the maximum size of the location path in IAST vulnerabilities #9242
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
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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)
BenchmarksStartupLoadParameters
See matching parameters
SummaryFound 3 performance improvements and 3 performance regressions! Performance is the same for 6 metrics, 12 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.51.0-SNAPSHOT~7581abc3f7, baseline=1.51.1-SNAPSHOT~94cd99adda
dateFormat X
axisFormat %s
section baseline
no_agent (4.731 ms) : 4675, 4786
. : milestone, 4731,
iast (9.714 ms) : 9554, 9874
. : milestone, 9714,
iast_FULL (13.962 ms) : 13685, 14239
. : milestone, 13962,
iast_GLOBAL (10.133 ms) : 9956, 10310
. : milestone, 10133,
profiling (8.514 ms) : 8383, 8645
. : milestone, 8514,
tracing (7.646 ms) : 7537, 7755
. : milestone, 7646,
section candidate
no_agent (4.262 ms) : 4214, 4310
. : milestone, 4262,
iast (9.1 ms) : 8949, 9252
. : milestone, 9100,
iast_FULL (13.815 ms) : 13537, 14094
. : milestone, 13815,
iast_GLOBAL (9.951 ms) : 9778, 10124
. : milestone, 9951,
profiling (8.837 ms) : 8693, 8982
. : milestone, 8837,
tracing (8.038 ms) : 7922, 8154
. : milestone, 8038,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.51.0-SNAPSHOT~7581abc3f7, baseline=1.51.1-SNAPSHOT~94cd99adda
dateFormat X
axisFormat %s
section baseline
no_agent (37.289 ms) : 36991, 37588
. : milestone, 37289,
appsec (46.921 ms) : 46494, 47349
. : milestone, 46921,
code_origins (44.301 ms) : 43932, 44670
. : milestone, 44301,
iast (45.106 ms) : 44726, 45485
. : milestone, 45106,
profiling (48.794 ms) : 48315, 49273
. : milestone, 48794,
tracing (44.331 ms) : 43955, 44708
. : milestone, 44331,
section candidate
no_agent (36.393 ms) : 36096, 36690
. : milestone, 36393,
appsec (45.424 ms) : 45023, 45825
. : milestone, 45424,
code_origins (44.454 ms) : 44095, 44812
. : milestone, 44454,
iast (44.69 ms) : 44317, 45063
. : milestone, 44690,
profiling (51.27 ms) : 50725, 51815
. : milestone, 51270,
tracing (43.626 ms) : 43272, 43979
. : milestone, 43626,
DacapoParameters
See matching parameters
SummaryFound 1 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 1 unstable metrics.
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.51.0-SNAPSHOT~7581abc3f7, baseline=1.51.1-SNAPSHOT~94cd99adda
dateFormat X
axisFormat %s
section baseline
no_agent (15.53 s) : 15530000, 15530000
. : milestone, 15530000,
appsec (14.933 s) : 14933000, 14933000
. : milestone, 14933000,
iast (18.182 s) : 18182000, 18182000
. : milestone, 18182000,
iast_GLOBAL (17.985 s) : 17985000, 17985000
. : milestone, 17985000,
profiling (14.959 s) : 14959000, 14959000
. : milestone, 14959000,
tracing (14.909 s) : 14909000, 14909000
. : milestone, 14909000,
section candidate
no_agent (15.285 s) : 15285000, 15285000
. : milestone, 15285000,
appsec (15.141 s) : 15141000, 15141000
. : milestone, 15141000,
iast (18.388 s) : 18388000, 18388000
. : milestone, 18388000,
iast_GLOBAL (17.954 s) : 17954000, 17954000
. : milestone, 17954000,
profiling (15.337 s) : 15337000, 15337000
. : milestone, 15337000,
tracing (14.889 s) : 14889000, 14889000
. : milestone, 14889000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.51.0-SNAPSHOT~7581abc3f7, baseline=1.51.1-SNAPSHOT~94cd99adda
dateFormat X
axisFormat %s
section baseline
no_agent (1.47 ms) : 1458, 1481
. : milestone, 1470,
appsec (3.631 ms) : 3414, 3848
. : milestone, 3631,
iast (2.191 ms) : 2128, 2253
. : milestone, 2191,
iast_GLOBAL (2.226 ms) : 2163, 2289
. : milestone, 2226,
profiling (2.035 ms) : 1985, 2085
. : milestone, 2035,
tracing (2.015 ms) : 1966, 2064
. : milestone, 2015,
section candidate
no_agent (1.475 ms) : 1464, 1487
. : milestone, 1475,
appsec (2.39 ms) : 2341, 2439
. : milestone, 2390,
iast (2.178 ms) : 2116, 2240
. : milestone, 2178,
iast_GLOBAL (2.224 ms) : 2162, 2287
. : milestone, 2224,
profiling (2.481 ms) : 2311, 2652
. : milestone, 2481,
tracing (1.992 ms) : 1944, 2039
. : milestone, 1992,
|
manuel-alvarez-alvarez
approved these changes
Jul 24, 2025
We no longer need to proceed with the 1.50.2 release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport #9028 to release/v1.50.x