Skip to content

fix(buildkite): use secure temp file in kickoff-benchmark.sh#388

Open
jcc-google wants to merge 2 commits into
vllm-project:mainfrom
jcc-google:fix/symlink-overwrite-benchmark-b510375914
Open

fix(buildkite): use secure temp file in kickoff-benchmark.sh#388
jcc-google wants to merge 2 commits into
vllm-project:mainfrom
jcc-google:fix/symlink-overwrite-benchmark-b510375914

Conversation

@jcc-google

Copy link
Copy Markdown
Contributor

Use 'mktemp' to create a secure, unpredictable temporary file in /tmp for merging YAML configurations, instead of writing to a static path 'temp.yaml' in the untrusted checkout directory. This prevents arbitrary file overwrite attacks via malicious symlinks.

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

Use 'mktemp' to create a secure, unpredictable temporary file in /tmp
for merging YAML configurations, instead of writing to a static path
'temp.yaml' in the untrusted checkout directory. This prevents arbitrary
file overwrite attacks via malicious symlinks.

Signed-off-by: Jincheng Chen <chenjincheng@google.com>
BUG=b/510375914
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