-
Notifications
You must be signed in to change notification settings - Fork 312
Add validation checks for user provided arguments in git commands #9092
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
if (!GitUtils.isValidCommitSha(commit) && !GitUtils.isValidRef(commit)) { | ||
return Collections.emptyList(); | ||
} |
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.
I believe this method and some others are always called with HEAD
, but thought it would be nice to future-proof it just in case the behavior changes
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
BenchmarksStartupParameters
See matching parameters
SummaryFound 1 performance improvements and 0 performance regressions! Performance is the same for 43 metrics, 9 unstable metrics.
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (995.207 ms) : 0, 995207
Total [baseline] (10.666 s) : 0, 10666166
Agent [candidate] (1.004 s) : 0, 1004202
Total [candidate] (10.691 s) : 0, 10690628
section appsec
Agent [baseline] (1.176 s) : 0, 1176173
Total [baseline] (10.733 s) : 0, 10733265
Agent [candidate] (1.178 s) : 0, 1178108
Total [candidate] (10.938 s) : 0, 10937935
section iast
Agent [baseline] (1.136 s) : 0, 1136013
Total [baseline] (10.808 s) : 0, 10808391
Agent [candidate] (1.132 s) : 0, 1131559
Total [candidate] (10.909 s) : 0, 10909329
section profiling
Agent [baseline] (1.246 s) : 0, 1245520
Total [baseline] (10.962 s) : 0, 10962075
Agent [candidate] (1.245 s) : 0, 1245477
Total [candidate] (10.988 s) : 0, 10988086
gantt
title petclinic - break down per module: candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (686.698 ms) : 0, 686698
BytebuddyAgent [candidate] (693.915 ms) : 0, 693915
GlobalTracer [baseline] (242.198 ms) : 0, 242198
GlobalTracer [candidate] (243.683 ms) : 0, 243683
AppSec [baseline] (30.108 ms) : 0, 30108
AppSec [candidate] (30.633 ms) : 0, 30633
Debugger [baseline] (5.994 ms) : 0, 5994
Debugger [candidate] (6.062 ms) : 0, 6062
Remote Config [baseline] (683.744 µs) : 0, 684
Remote Config [candidate] (675.097 µs) : 0, 675
Telemetry [baseline] (8.198 ms) : 0, 8198
Telemetry [candidate] (8.262 ms) : 0, 8262
section appsec
BytebuddyAgent [baseline] (710.634 ms) : 0, 710634
BytebuddyAgent [candidate] (711.961 ms) : 0, 711961
GlobalTracer [baseline] (235.404 ms) : 0, 235404
GlobalTracer [candidate] (236.89 ms) : 0, 236890
AppSec [baseline] (170.977 ms) : 0, 170977
AppSec [candidate] (171.64 ms) : 0, 171640
Debugger [baseline] (5.77 ms) : 0, 5770
Debugger [candidate] (5.825 ms) : 0, 5825
Remote Config [baseline] (604.359 µs) : 0, 604
Remote Config [candidate] (608.315 µs) : 0, 608
Telemetry [baseline] (8.082 ms) : 0, 8082
Telemetry [candidate] (8.119 ms) : 0, 8119
IAST [baseline] (23.28 ms) : 0, 23280
IAST [candidate] (22.309 ms) : 0, 22309
section iast
BytebuddyAgent [baseline] (809.504 ms) : 0, 809504
BytebuddyAgent [candidate] (808.341 ms) : 0, 808341
GlobalTracer [baseline] (233.411 ms) : 0, 233411
GlobalTracer [candidate] (232.874 ms) : 0, 232874
AppSec [baseline] (28.757 ms) : 0, 28757
AppSec [candidate] (25.702 ms) : 0, 25702
Debugger [baseline] (5.824 ms) : 0, 5824
Debugger [candidate] (5.789 ms) : 0, 5789
Remote Config [baseline] (574.272 µs) : 0, 574
Remote Config [candidate] (587.659 µs) : 0, 588
Telemetry [baseline] (7.997 ms) : 0, 7997
Telemetry [candidate] (7.934 ms) : 0, 7934
IAST [baseline] (28.565 ms) : 0, 28565
IAST [candidate] (29.522 ms) : 0, 29522
section profiling
BytebuddyAgent [baseline] (678.195 ms) : 0, 678195
BytebuddyAgent [candidate] (679.015 ms) : 0, 679015
GlobalTracer [baseline] (361.901 ms) : 0, 361901
GlobalTracer [candidate] (361.126 ms) : 0, 361126
AppSec [baseline] (32.246 ms) : 0, 32246
AppSec [candidate] (32.331 ms) : 0, 32331
Debugger [baseline] (12.146 ms) : 0, 12146
Debugger [candidate] (11.619 ms) : 0, 11619
Remote Config [baseline] (670.187 µs) : 0, 670
Remote Config [candidate] (1.427 ms) : 0, 1427
Telemetry [baseline] (8.026 ms) : 0, 8026
Telemetry [candidate] (8.016 ms) : 0, 8016
ProfilingAgent [baseline] (103.267 ms) : 0, 103267
ProfilingAgent [candidate] (103.341 ms) : 0, 103341
Profiling [baseline] (103.292 ms) : 0, 103292
Profiling [candidate] (103.365 ms) : 0, 103365
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.003 s) : 0, 1003456
Total [baseline] (8.571 s) : 0, 8570884
Agent [candidate] (1.01 s) : 0, 1009795
Total [candidate] (8.603 s) : 0, 8603083
section iast
Agent [baseline] (1.145 s) : 0, 1145198
Total [baseline] (9.373 s) : 0, 9372834
Agent [candidate] (1.133 s) : 0, 1132618
Total [candidate] (9.274 s) : 0, 9273964
gantt
title insecure-bank - break down per module: candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (693.114 ms) : 0, 693114
BytebuddyAgent [candidate] (698.016 ms) : 0, 698016
GlobalTracer [baseline] (243.19 ms) : 0, 243190
GlobalTracer [candidate] (244.827 ms) : 0, 244827
AppSec [baseline] (30.634 ms) : 0, 30634
AppSec [candidate] (30.811 ms) : 0, 30811
Debugger [baseline] (6.11 ms) : 0, 6110
Debugger [candidate] (6.116 ms) : 0, 6116
Remote Config [baseline] (686.236 µs) : 0, 686
Remote Config [candidate] (691.365 µs) : 0, 691
Telemetry [baseline] (8.303 ms) : 0, 8303
Telemetry [candidate] (8.332 ms) : 0, 8332
section iast
BytebuddyAgent [baseline] (815.431 ms) : 0, 815431
BytebuddyAgent [candidate] (808.951 ms) : 0, 808951
GlobalTracer [baseline] (235.794 ms) : 0, 235794
GlobalTracer [candidate] (233.038 ms) : 0, 233038
AppSec [baseline] (29.665 ms) : 0, 29665
AppSec [candidate] (26.779 ms) : 0, 26779
Debugger [baseline] (6.797 ms) : 0, 6797
Debugger [candidate] (5.825 ms) : 0, 5825
Remote Config [baseline] (599.723 µs) : 0, 600
Remote Config [candidate] (594.885 µs) : 0, 595
Telemetry [baseline] (8.156 ms) : 0, 8156
Telemetry [candidate] (7.91 ms) : 0, 7910
IAST [baseline] (27.291 ms) : 0, 27291
IAST [candidate] (28.786 ms) : 0, 28786
LoadParameters
See matching parameters
SummaryFound 2 performance improvements and 2 performance regressions! Performance is the same for 8 metrics, 12 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section baseline
no_agent (4.205 ms) : 4156, 4255
. : milestone, 4205,
iast (9.016 ms) : 8871, 9160
. : milestone, 9016,
iast_FULL (13.986 ms) : 13712, 14260
. : milestone, 13986,
iast_GLOBAL (10.608 ms) : 10422, 10794
. : milestone, 10608,
profiling (8.833 ms) : 8678, 8989
. : milestone, 8833,
tracing (7.467 ms) : 7352, 7583
. : milestone, 7467,
section candidate
no_agent (4.306 ms) : 4258, 4354
. : milestone, 4306,
iast (9.012 ms) : 8867, 9158
. : milestone, 9012,
iast_FULL (13.874 ms) : 13602, 14145
. : milestone, 13874,
iast_GLOBAL (9.915 ms) : 9744, 10087
. : milestone, 9915,
profiling (9.136 ms) : 8988, 9285
. : milestone, 9136,
tracing (7.423 ms) : 7318, 7527
. : milestone, 7423,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section baseline
no_agent (38.038 ms) : 37733, 38343
. : milestone, 38038,
appsec (46.856 ms) : 46443, 47268
. : milestone, 46856,
code_origins (46.276 ms) : 45864, 46687
. : milestone, 46276,
iast (45.044 ms) : 44642, 45446
. : milestone, 45044,
profiling (46.298 ms) : 45842, 46755
. : milestone, 46298,
tracing (44.051 ms) : 43677, 44425
. : milestone, 44051,
section candidate
no_agent (35.716 ms) : 35424, 36008
. : milestone, 35716,
appsec (48.891 ms) : 48449, 49334
. : milestone, 48891,
code_origins (45.32 ms) : 44929, 45711
. : milestone, 45320,
iast (44.494 ms) : 44111, 44878
. : milestone, 44494,
profiling (48.905 ms) : 48453, 49357
. : milestone, 48905,
tracing (43.916 ms) : 43569, 44263
. : milestone, 43916,
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 tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section baseline
no_agent (1.471 ms) : 1459, 1482
. : milestone, 1471,
appsec (2.401 ms) : 2352, 2450
. : milestone, 2401,
iast (2.185 ms) : 2123, 2247
. : milestone, 2185,
iast_GLOBAL (2.227 ms) : 2165, 2290
. : milestone, 2227,
profiling (2.039 ms) : 1988, 2090
. : milestone, 2039,
tracing (2.006 ms) : 1958, 2054
. : milestone, 2006,
section candidate
no_agent (1.471 ms) : 1460, 1483
. : milestone, 1471,
appsec (2.4 ms) : 2351, 2450
. : milestone, 2400,
iast (2.182 ms) : 2120, 2244
. : milestone, 2182,
iast_GLOBAL (2.23 ms) : 2168, 2292
. : milestone, 2230,
profiling (2.052 ms) : 2001, 2103
. : milestone, 2052,
tracing (2.008 ms) : 1960, 2056
. : milestone, 2008,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.51.0-SNAPSHOT~f8bed95ddd, baseline=1.51.0-SNAPSHOT~dd595896c4
dateFormat X
axisFormat %s
section baseline
no_agent (14.768 s) : 14768000, 14768000
. : milestone, 14768000,
appsec (14.885 s) : 14885000, 14885000
. : milestone, 14885000,
iast (18.58 s) : 18580000, 18580000
. : milestone, 18580000,
iast_GLOBAL (17.728 s) : 17728000, 17728000
. : milestone, 17728000,
profiling (15.308 s) : 15308000, 15308000
. : milestone, 15308000,
tracing (14.582 s) : 14582000, 14582000
. : milestone, 14582000,
section candidate
no_agent (15.084 s) : 15084000, 15084000
. : milestone, 15084000,
appsec (14.637 s) : 14637000, 14637000
. : milestone, 14637000,
iast (18.977 s) : 18977000, 18977000
. : milestone, 18977000,
iast_GLOBAL (18.348 s) : 18348000, 18348000
. : milestone, 18348000,
profiling (15.881 s) : 15881000, 15881000
. : milestone, 15881000,
tracing (14.998 s) : 14998000, 14998000
. : milestone, 14998000,
|
What Does This Do
Motivation
The arguments are used in git commands which renders them vulnerable to code injection.
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: VULN-11396