Skip to content

fix(buildkite): use coverage binary directly to prevent hijacking#386

Open
jcc-google wants to merge 2 commits into
vllm-project:mainfrom
jcc-google:fix/coverage-hijacking-b510375756
Open

fix(buildkite): use coverage binary directly to prevent hijacking#386
jcc-google wants to merge 2 commits into
vllm-project:mainfrom
jcc-google:fix/coverage-hijacking-b510375756

Conversation

@jcc-google

Copy link
Copy Markdown
Contributor

Replace 'python3 -m coverage' with direct calls to 'coverage' binary. Running python with -m prepends the CWD to sys.path, which allows untrusted workspace files to hijack the 'coverage' module. Running the binary directly avoids this.

BUG=b/510375756
TAG=agy
CONV=f5118c4a-3577-4dc6-a4b6-1f2abb990935

Replace 'python3 -m coverage' with direct calls to 'coverage' binary.
Running python with -m prepends the CWD to sys.path, which allows
untrusted workspace files to hijack the 'coverage' module. Running
the binary directly avoids this.

Signed-off-by: Jincheng Chen <chenjincheng@google.com>
BUG=b/510375756
TAG=agy
CONV=f5118c4a-3577-4dc6-a4b6-1f2abb990935
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant