Validate credential store name before process execution#978
Merged
dmandalidis merged 3 commits intomainfrom Mar 26, 2026
Merged
Validate credential store name before process execution#978dmandalidis merged 3 commits intomainfrom
dmandalidis merged 3 commits intomainfrom
Conversation
Co-authored-by: dmandalidis <[email protected]> Agent-Logs-Url: https://github.com/dmandalidis/docker-client/sessions/d08229bf-69c8-405a-8fde-e1b993b99808
Co-authored-by: dmandalidis <[email protected]> Agent-Logs-Url: https://github.com/dmandalidis/docker-client/sessions/d08229bf-69c8-405a-8fde-e1b993b99808
Copilot
AI
changed the title
[WIP] Fix security vulnerabilities in the codebase
Validate credential store name before process execution
Mar 25, 2026
dmandalidis
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SystemCredentialHelperDelegatepassed thecredsStorevalue from~/.docker/config.jsondirectly intoProcessBuilderwithout validation, allowing path traversal via a crafted config (e.g.,credsStore: "../../usr/bin/evil") to execute arbitrary binaries.Changes
SystemCredentialHelperDelegate: Added input validation oncredsStorebefore constructing the executable name. Only[a-zA-Z0-9_-]+is accepted; anything else throwsIOException.SystemCredentialHelperDelegateTest: Added tests covering path traversal (../../usr/bin/evil) and shell metacharacter injection across all four operations (get,store,erase,list).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
240.0.0.1/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -javaagent:/home/REDACTED/.m2/repository/org/jacoco/org.jacoco.agent/0.8.14/org.jacoco.agent-0.8.14-runtime.jar=destfile=/home/REDACTED/work/docker-client/docker-client/target/jacoco.exec -jar /home/REDACTED/work/docker-client/docker-client/target/surefire/surefirebooter-20260325082914938_3.jar /home/REDACTED/work/docker-client/docker-client/target/surefire 2026-03-25T08-29-14_531-jvmRun1 surefire-20260325082914938_1tmp surefire_0-20260325082914938_2tmp(packet block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.