From a94b22e69b73492b7cc126d968d25a88afd825c8 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira da Silva Date: Fri, 13 May 2022 12:34:31 -0300 Subject: [PATCH] Prevent Arbitrary code execution via crafted environment variables - Avoid the usage of eval - Suppress error messages without suppressing the error code Resolves #11983 --- quarkus/dist/src/main/content/bin/kc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 quarkus/dist/src/main/content/bin/kc.sh diff --git a/quarkus/dist/src/main/content/bin/kc.sh b/quarkus/dist/src/main/content/bin/kc.sh old mode 100644 new mode 100755 index fd28d5b2be3..810fc8d9062 --- a/quarkus/dist/src/main/content/bin/kc.sh +++ b/quarkus/dist/src/main/content/bin/kc.sh @@ -97,7 +97,7 @@ CLASSPATH_OPTS="'$DIRNAME'/../lib/quarkus-run.jar" JAVA_RUN_OPTS="$JAVA_OPTS $SERVER_OPTS -cp $CLASSPATH_OPTS io.quarkus.bootstrap.runner.QuarkusEntryPoint ${CONFIG_ARGS#?}" if [[ $CONFIG_ARGS = *"--auto-build"* ]]; then - eval "$JAVA" -Dkc.config.rebuild-and-exit=true $JAVA_RUN_OPTS + "$JAVA" -Dkc.config.rebuild-and-exit=true $JAVA_RUN_OPTS 2>&- EXIT_CODE=$? if [ $EXIT_CODE != 0 ]; then exit $EXIT_CODE