Skip to content

Prevent Arbitrary code execution via crafted environment variables #11983

Closed

Description

@abstractj

Description

Originally reported by Giordano, Francesco.

The kc.sh startup script allows a malicious attacker to manipulate JAVA_OPTS environment variable, allowing the execution of arbitrary code.

Steps to reproduce

$  export JAVA_OPTS="-h;eval touch stuff #"
$ bash kc.sh --auto-build > /dev/null 2>&1
$ ls stuff

Discussion

No response

Motivation

No response

Details

No response

Activity

  1. added
    kind/bug
    area/dist/quarkus
    on May 13, 2022
  2. self-assigned this
    on May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/dist/quarkuskind/bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions