Skip to content
RCE Write-up Intermediate

[UNPATCHED] Cli: gh run download implementation allows overwriting git repository configuration upon artifacts downloading

The gh run download command writes artifact files into the current directory without preventing writes to the .git folder, allowing an attacker to create a .git/commondir file that points to a malicious git configuration. When the user runs any git command, this configuration can execute arbitrary code.

Vladimir Metnew Follow

Published on github.com

Bounty$500 View original

Metnew feat: add gh run download bug

Vladimir Metnew (@vladimir_metnew), on github.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

Context

The target here is GitHub's official command line tool, gh, and specifically the gh run download command. That command exists to pull down artifacts produced by a GitHub Actions workflow run. Its documented behaviour, quoted in GitHub's response, is that the contents of each artifact are extracted under separate directories based on the artifact name, and that if only a single artifact is specified it is extracted into the current directory.

The relevant flags are:

Text
USAGE
  gh run download [<run-id>] [flags]

FLAGS
  -D, --dir string         The directory to download artifacts into (default ".")

So by default the extraction root is the current directory, which in normal use is the root of the repository the developer is working in. The researcher's claim is that this default, combined with the absence of restrictions on the names and paths of the files inside an artifact, lets a malicious repository deliver files into the victim's .git directory and achieve code execution.

Setup

The write-up does not describe any special account, role or tooling beyond a normal gh installation and a git client. The preconditions are the ones implied by the attack:

  1. The victim clones or otherwise works with an attacker-controlled repository.
  2. The victim runs gh run download in that repository, either interactively or with a specific run id.
  3. The victim, or some tooling acting on their behalf, subsequently runs a git command against that repository.

The researcher published a proof-of-concept repository, Metnew/gh_run_download_git_artifacts, and a screencast of the exploit. The bounty was 500 USD, which the researcher donated to https://www.comebackalive.in.ua/.

Finding it

The starting observation is about how gh run download writes files. By default it puts artifacts in the current directory. It cannot overwrite existing files, only create new ones. There are no restrictions on the name or path of the files to be written, apart from a path traversal check.

That combination means an attacker who controls the contents of an artifact can craft it so that running gh run download creates new files under <root>/.git/*. The .git directory is normally invisible to a developer's day-to-day review of a repository, so files dropped there are unlikely to be noticed.

Exploitation

The proof of concept is short:

Bash
# Clone malicious repo
$ git clone https://github.com/Metnew/gh_run_download_git_artifacts
# Download the maliicous artifact **interactively**
$ gh run download
# OR download the specific version directly
# However, in this case the artifact may require some slight modifications (untested)
# $ gh run download 216442041
# Boom!
$ git fetch
# OR just navigate to the dir with zsh

The proof of concept runs gh run download interactively. The variant with an explicit run id (gh run download 216442041) is noted as possibly requiring slight modifications to the artifact, and the researcher marks it as untested. The final trigger is a git command such as git fetch, or simply navigating into the directory with zsh.

Step 1: clone the malicious repository

The victim clones the attacker's repository.

Step 2: run gh run download

The victim runs the command in the repository. The artifact contains files whose paths place them inside .git, and because gh run download only refuses to overwrite existing files and only checks for path traversal, these new files are created.

Step 3: the artifact plants .git/commondir and a nested repository

The downloaded artifact contains a file .git/commondir pointing to ./poc, together with .git/poc, a git repository containing a malicious .gitconfig. The researcher's step list describes it as:

  1. gh run download
  2. the downloaded artifact has fileee .git/commondir pointing to ./poc and .git/poc git repository with malicious .gitconfig
  3. gh cli writes artifact files to .git
  4. now the actual gitconfig in effect isn't /.git/config, but .git/poc/config
  5. user tooling interacts with the repository (regular git diff in github desktop) OR user runs some git command (e.g. git fetch)
  6. code execution!

The mechanism is commondir. As the git documentation quoted in the report says:

commondir If this file exists, $GIT_COMMON_DIR (see git[1]) will be set to the path specified in this file if it is not explicitly set. If the specified path is relative, it is relative to $GIT_DIR. The repository with commondir is incomplete without the repository pointed by "commondir".

By redefining $GIT_COMMON_DIR for the current repository, the attacker supplies their own .gitconfig for the repository. The report notes that a malicious payload can be achieved through gitconfig properties such as core.gitproxy, core.sshCommand and credential.helper, through git hooks, and through git filters.

Step 4: the victim runs a git command

Once the configuration in effect comes from the attacker's nested repository, a git command the victim runs, or a tool that runs git on their behalf, can execute the attacker's commands. The report gives git fetch as the example, and also mentions regular git diff in GitHub Desktop as a case where tooling interacts with the repository without the user typing a git command.

Alternative: git hooks

The report describes a second route through the same commondir primitive: redefining core.hooksPath so that executable hooks become part of the repository. In that case the hooks would carry the +x flag and code execution via git hooks would be achievable.

There is a practical obstacle. The well-known issue in actions/upload resets file permissions on artifacts, so hooks written into .git/hooks are not executable at the time of writing. The researcher notes that adding +x to all artifacts was originally the default behaviour, and that this scenario will become live as soon as the permissions issue is fixed. The argument for the hooks route is that no one can plausibly have every possible client-side git hook configured, including non-standard ones, so there is always room for a malicious one. The report lists the hook names it has in mind:

Text
applypatch-msg pre-commit commit-msg    pre-merge fsmonitor-watchman    pre-merge-commit post-applypatch       pre-push
post-checkout  pre-rebase post-index-change  pre-receive post-merge prepare-commit-msg
post-rewrite  push-to-checkout post-update  reference-transaction pre-applypatch sendemail-validate pre-auto-gc update

In this scenario the malicious code runs when the victim runs any porcelain git command: git fetch, pull, push, checkout, commit, merge, rebase, am, add, rm.

Root cause

The design decision behind the bug is that gh run download extracts artifact contents into the current directory by default, refuses only to overwrite existing files, and imposes no restriction on the names or paths of the files it writes beyond a path traversal check. Nothing prevents an artifact from creating new files inside .git, and git itself treats several files inside .git as configuration: commondir redirects the common directory, and the configuration found there can define commands to run through properties such as core.gitproxy, core.sshCommand and credential.helper, through hooks, and through filters.

The checks described in the report are the no-overwrite rule and the path traversal check, neither of which treats .git as a protected location. The hooks variant is currently limited by the artifact permission reset in actions/upload.

Impact

Running gh run download on an untrusted repository may lead to arbitrary code execution. The report frames the impact as manipulation of repository configuration leading to code execution.

The attack can be carried out unnoticeably for a victim running git status or similar, because the payload is dropped directly into the .git folder. The researcher also notes it can be used effectively by an insider against other contributors to the same repository, since it is very unlikely that someone checks the .git folder every time they pull new artifacts.

The report draws a parallel with CVE-2022-24765, quoting the git release notes:

Merely having a Git-aware prompt that runs git status (or git diff) and navigating to a directory which is supposedly not a Git worktree, or opening such a directory in an editor or IDE such as VS Code or Atom, will potentially run commands defined by that other user.

and the CVE description:

Git Bash users who set GIT_PS1_SHOWDIRTYSTATE are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in ..... Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash.

Fix

GitHub decided not to patch the issue. In its response the team said it had thoroughly analysed the finding and determined that the behaviour is working as expected, citing the CLI documentation for gh run download:

Download artifacts generated by a GitHub Actions workflow run. The contents of each artifact will be extracted under separate directories based on the artifact name. If only a single artifact is specified, it will be extracted into the current directory.

GitHub also said that exploiting the finding requires social engineering and user interaction, which it considers out of scope for the CLI, citing its bounty site:

Code execution requiring social-engineering or unlikely user interaction is typically not eligible for rewards.

The report was therefore not eligible for a full bounty reward, though GitHub offered a small award, with the option to donate it and have it matched.

The researcher disagrees with the decision. In their view the bug fits the definition of in-scope bugs for the CLI:

Code execution that requires minimal, expected user interaction, such as performing actions on a repository that a user would not expect to lead to code execution

They argue the report should have been triaged and rewarded at least at Medium severity, and that the real CVSS is high.

Variants to test

  1. Other artifact-extraction commands. Any tool that unpacks attacker-controlled archives into a working directory, such as other CI artifact downloaders or package extractors, is worth testing with an archive containing .git/commondir and a nested repository. A positive result is that the file lands in .git and a subsequent git fetch or git diff executes a command defined in the nested config.
  2. Other git control files. Beyond commondir, try planting files that git reads as configuration or indirection, for example a nested repository referenced by core.hooksPath. A positive result is code execution from a hook or config property after a normal git command.
  3. Hook execution once permissions survive. If an extraction path preserves the executable bit on artifact files, plant hooks under .git/hooks and run a porcelain command such as git commit or git checkout. A positive result is the hook running without any further user action.
  4. Non-interactive download. Test gh run download <run-id> with a crafted artifact to see whether the explicit run id path behaves the same as the interactive one, which the report leaves untested. A positive result is the same .git write and subsequent execution.
  5. Tooling-triggered execution. Open a repository containing the planted files in an IDE or Git-aware shell prompt and observe whether configuration is read and commands run without the user typing a git command. A positive result is execution triggered purely by opening or navigating to the directory.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 16 min read.

What happened, in plain words

GitHub makes a program called gh, the GitHub command line tool. You run it in a terminal (the text window where you type commands instead of clicking) to do GitHub things without opening a browser. One of its commands, gh run download, fetches files that a GitHub Actions workflow produced. GitHub Actions is GitHub's built-in automation: you tell it "whenever code changes, build the project and save the result", and the saved result is called an artifact.

The researcher found that gh run download will happily create new files inside a hidden folder called .git, which sits in every git project and holds the project's settings. By putting a specially crafted artifact in a repository, an attacker can make that download plant a settings file that tells git to run the attacker's commands. The next time the victim, or any program acting for them, runs a normal git command, the attacker's code runs. GitHub looked at the report and decided the behaviour was intended and would not be patched. The researcher was paid 500 USD and donated it to https://www.comebackalive.in.ua/.

The pieces you need to know

Before the details, a few everyday ideas:

  • Git is a tool for tracking changes to files. A repository (repo) is a project folder that git watches. Every repo contains a hidden folder named .git where git keeps its own bookkeeping: the history of changes, and configuration files that say how git should behave.
  • GitHub is a website that hosts git repositories online so people can share and collaborate.
  • GitHub Actions is automation on GitHub. A workflow run is one execution of that automation, and an artifact is a bundle of files a run produces (a build output, a log, a test report).
  • gh is GitHub's official command line tool. A command line tool is a program you operate by typing commands rather than clicking buttons.
  • Code execution (often shortened to RCE, remote code execution) means an attacker gets their own instructions to run on your computer. It is the worst class of bug because the attacker is no longer limited to reading data: they can do anything your user account can do.
  • Social engineering means tricking a person into an action, for example getting them to clone a repository or run a command.

The target and the command

The target is gh, and specifically gh run download. That command exists to pull down artifacts produced by a workflow run. GitHub's own documentation, quoted in its response, says the contents of each artifact are extracted under separate directories based on the artifact name, and that if only a single artifact is specified it is extracted into the current directory.

The relevant flags are:

Text
USAGE
  gh run download [<run-id>] [flags]

FLAGS
  -D, --dir string         The directory to download artifacts into (default ".")

Line by line:

  • USAGE introduces how the command is typed. gh run download [<run-id>] [flags] means you run gh run download, optionally followed by a run id (a number identifying one particular workflow run) and optional flags.
  • FLAGS introduces the options. -D, --dir string is one option with a short form -D and a long form --dir; it takes a piece of text (a string) naming the folder to download into.
  • (default ".") means that if you do not pass --dir, the folder used is ., which in file paths means "the current directory", the folder you are standing in when you type the command.

So by default the extraction root is the current directory, which in normal use is the root of the repository the developer is working in. The researcher's claim is that this default, combined with the absence of restrictions on the names and paths of the files inside an artifact, lets a malicious repository deliver files into the victim's .git directory and achieve code execution.

Setup

The write-up does not describe any special account, role or tooling beyond a normal gh installation and a git client. The preconditions are the ones implied by the attack:

  1. The victim clones or otherwise works with an attacker-controlled repository. Cloning means copying a repository from a server to your own machine.
  2. The victim runs gh run download in that repository, either interactively or with a specific run id. Interactively here means running the command without arguments and choosing from what it offers.
  3. The victim, or some tooling acting on their behalf, subsequently runs a git command against that repository.

The researcher published a proof-of-concept repository, Metnew/gh_run_download_git_artifacts, and a screencast of the exploit. A proof of concept (PoC) is a small demonstration that the attack really works. The bounty was 500 USD, which the researcher donated to https://www.comebackalive.in.ua/.

Finding it

The starting observation is about how gh run download writes files. By default it puts artifacts in the current directory. It cannot overwrite existing files, only create new ones. There are no restrictions on the name or path of the files to be written, apart from a path traversal check. Path traversal is an attack where a file name contains .. to climb out of the intended folder, for example ../../somewhere; the check blocks that.

That combination means an attacker who controls the contents of an artifact can craft it so that running gh run download creates new files under <root>/.git/*. The .git directory is normally invisible to a developer's day-to-day review of a repository, so files dropped there are unlikely to be noticed. Most file browsers hide folders whose names start with a dot, and people look at their source files, not at git's internal bookkeeping.

Exploitation

The proof of concept is short:

Bash
# Clone malicious repo
$ git clone https://github.com/Metnew/gh_run_download_git_artifacts
# Download the maliicous artifact **interactively**
$ gh run download
# OR download the specific version directly
# However, in this case the artifact may require some slight modifications (untested)
# $ gh run download 216442041
# Boom!
$ git fetch
# OR just navigate to the dir with zsh

Line by line:

  • # Clone malicious repo is a comment (text after # is ignored by the shell). It says what the next line does.
  • $ git clone https://github.com/Metnew/gh_run_download_git_artifacts copies the attacker's repository from GitHub to the victim's machine. The $ is the shell prompt, not part of the command.
  • # Download the maliicous artifact **interactively** is a comment describing the next line.
  • $ gh run download runs the download with no arguments.
  • The next three lines are commented out. They describe an alternative: $ gh run download 216442041 downloads one specific run by its id. The comment notes the artifact may need slight modifications in that case, and the researcher marks it as untested.
  • # Boom! is a comment marking the moment the trap springs.
  • $ git fetch is a normal git command that contacts the remote server for new changes, and it is one trigger.
  • # OR just navigate to the dir with zsh is a comment offering another route: navigating to the folder with zsh. zsh is a shell, a program that reads the commands you type; some shells show git information in the prompt, which means they run git commands in the background.

The proof of concept runs gh run download interactively. The variant with an explicit run id (gh run download 216442041) is noted as possibly requiring slight modifications to the artifact, and the researcher marks it as untested. The final trigger is a git command such as git fetch, or simply navigating into the directory with zsh.

Step 1: clone the malicious repository

The victim clones the attacker's repository. A checkout is the working copy of the files that git has placed on disk for you.

Step 2: run gh run download

The victim runs the command in the repository. The artifact contains files whose paths place them inside .git, and because gh run download only refuses to overwrite existing files and only checks for path traversal, these new files are created.

Step 3: the artifact plants .git/commondir and a nested repository

The downloaded artifact contains a file .git/commondir pointing to ./poc, together with .git/poc, a git repository containing a malicious .gitconfig. The researcher's step list describes it as:

  1. gh run download
  2. the downloaded artifact has fileee .git/commondir pointing to ./poc and .git/poc git repository with malicious .gitconfig
  3. gh cli writes artifact files to .git
  4. now the actual gitconfig in effect isn't /.git/config, but .git/poc/config
  5. user tooling interacts with the repository (regular git diff in github desktop) OR user runs some git command (e.g. git fetch)
  6. code execution!

In plain words: step 1 downloads the bundle. Step 2 says the bundle carries a small pointer file and a whole second, attacker-made repository tucked inside .git. Step 3 is the download writing those files into place. Step 4 is the consequence: git now reads its settings from the attacker's copy instead of the real one. Step 5 is the victim, or a program such as GitHub Desktop, touching the repository. Step 6 is the payoff.

The mechanism is commondir. As the git documentation quoted in the report says:

commondir If this file exists, $GIT_COMMON_DIR (see git[1]) will be set to the path specified in this file if it is not explicitly set. If the specified path is relative, it is relative to $GIT_DIR. The repository with commondir is incomplete without the repository pointed by "commondir".

What that means: git keeps some data shared between related repositories in a "common directory". Normally that is .git itself. The commondir file is a way to say "actually, the shared data lives over there". If the path written in it is relative, it is resolved from the .git folder. So a commondir containing ./poc tells git to look in .git/poc for the shared data, including the configuration file. By redefining $GIT_COMMON_DIR for the current repository, the attacker supplies their own .gitconfig for the repository. The report notes that a malicious payload can be achieved through gitconfig properties such as core.gitproxy, core.sshCommand and credential.helper, through git hooks, and through git filters. These are settings that name a program for git to run: a proxy for network connections, a command for SSH, a helper that supplies credentials, a hook (a script run at a particular moment), or a filter (a program that transforms file contents).

Step 4: the victim runs a git command

Once the configuration in effect comes from the attacker's nested repository, a git command the victim runs, or a tool that runs git on their behalf, can execute the attacker's commands. The report gives git fetch as the example, and also mentions regular git diff in GitHub Desktop as a case where tooling interacts with the repository without the user typing a git command. git diff shows what changed in your files; GitHub Desktop is a graphical app for git, and it runs git commands in the background as you click around.

Alternative: git hooks

The report describes a second route through the same commondir primitive: redefining core.hooksPath so that executable hooks become part of the repository. A hook is a script git runs automatically at a set moment, for example just before a commit is made. core.hooksPath is the setting that says which folder holds those scripts. In that case the hooks would carry the +x flag and code execution via git hooks would be achievable. The +x flag is the permission bit that marks a file as a program the system is allowed to run; without it, a script is just text.

There is a practical obstacle. The well-known issue in actions/upload resets file permissions on artifacts, so hooks written into .git/hooks are not executable at the time of writing. The researcher notes that adding +x to all artifacts was originally the default behaviour, and that this scenario will become live as soon as the permissions issue is fixed. The argument for the hooks route is that no one can plausibly have every possible client-side git hook configured, including non-standard ones, so there is always room for a malicious one. The report lists the hook names it has in mind:

Text
applypatch-msg pre-commit commit-msg    pre-merge fsmonitor-watchman    pre-merge-commit post-applypatch       pre-push
post-checkout  pre-rebase post-index-change  pre-receive post-merge prepare-commit-msg
post-rewrite  push-to-checkout post-update  reference-transaction pre-applypatch sendemail-validate pre-auto-gc update

This is simply a list of hook names, each one a moment at which git will look for a script: before a commit, after a checkout, before a push, and so on. The point is that the list is long, so a defender cannot cover every entry.

In this scenario the malicious code runs when the victim runs any porcelain git command: git fetch, pull, push, checkout, commit, merge, rebase, am, add, rm. Porcelain is git's word for its everyday, user-facing commands, as opposed to low-level plumbing commands.

Root cause

The design decision behind the bug is that gh run download extracts artifact contents into the current directory by default, refuses only to overwrite existing files, and imposes no restriction on the names or paths of the files it writes beyond a path traversal check. Nothing prevents an artifact from creating new files inside .git, and git itself treats several files inside .git as configuration: commondir redirects the common directory, and the configuration found there can define commands to run through properties such as core.gitproxy, core.sshCommand and credential.helper, through hooks, and through filters.

The checks described in the report are the no-overwrite rule and the path traversal check, neither of which treats .git as a protected location. The hooks variant is currently limited by the artifact permission reset in actions/upload.

Impact

Running gh run download on an untrusted repository may lead to arbitrary code execution. The report frames the impact as manipulation of repository configuration leading to code execution.

The attack can be carried out unnoticeably for a victim running git status or similar, because the payload is dropped directly into the .git folder. git status shows which files have changed, and it gives no hint that anything is wrong. The researcher also notes it can be used effectively by an insider against other contributors to the same repository, since it is very unlikely that someone checks the .git folder every time they pull new artifacts. An insider is someone with legitimate access to the project.

The report draws a parallel with CVE-2022-24765, quoting the git release notes:

Merely having a Git-aware prompt that runs git status (or git diff) and navigating to a directory which is supposedly not a Git worktree, or opening such a directory in an editor or IDE such as VS Code or Atom, will potentially run commands defined by that other user.

and the CVE description:

Git Bash users who set GIT_PS1_SHOWDIRTYSTATE are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in ..... Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash.

A CVE is a public catalogue number for a known vulnerability, so people can refer to the same bug unambiguously. The parallel matters because it shows the same pattern: configuration that git reads automatically can carry commands, and tools that read it without the user asking can trigger them.

Fix

GitHub decided not to patch the issue. In its response the team said it had thoroughly analysed the finding and determined that the behaviour is working as expected, citing the CLI documentation for gh run download:

Download artifacts generated by a GitHub Actions workflow run. The contents of each artifact will be extracted under separate directories based on the artifact name. If only a single artifact is specified, it will be extracted into the current directory.

GitHub also said that exploiting the finding requires social engineering and user interaction, which it considers out of scope for the CLI, citing its bounty site:

Code execution requiring social-engineering or unlikely user interaction is typically not eligible for rewards.

The report was therefore not eligible for a full bounty reward, though GitHub offered a small award, with the option to donate it and have it matched.

The researcher disagrees with the decision. In their view the bug fits the definition of in-scope bugs for the CLI:

Code execution that requires minimal, expected user interaction, such as performing actions on a repository that a user would not expect to lead to code execution

They argue the report should have been triaged and rewarded at least at Medium severity, and that the real CVSS is high. CVSS is a standard scoring system for the severity of a vulnerability; triage is the first review where a security team decides whether a report is valid and how serious it is.

Variants to test

  1. Other artifact-extraction commands. Any tool that unpacks attacker-controlled archives into a working directory, such as other CI artifact downloaders or package extractors, is worth testing with an archive containing .git/commondir and a nested repository. A positive result is that the file lands in .git and a subsequent git fetch or git diff executes a command defined in the nested config.
  2. Other git control files. Beyond commondir, try planting files that git reads as configuration or indirection, for example a nested repository referenced by core.hooksPath. A positive result is code execution from a hook or config property after a normal git command.
  3. Hook execution once permissions survive. If an extraction path preserves the executable bit on artifact files, plant hooks under .git/hooks and run a porcelain command such as git commit or git checkout. A positive result is the hook running without any further user action.
  4. Non-interactive download. Test gh run download <run-id> with a crafted artifact to see whether the explicit run id path behaves the same as the interactive one, which the report leaves untested. A positive result is the same .git write and subsequent execution.
  5. Tooling-triggered execution. Open a repository containing the planted files in an IDE or Git-aware shell prompt and observe whether configuration is read and commands run without the user typing a git command. A positive result is execution triggered purely by opening or navigating to the directory. An IDE is an integrated development environment, an editor with extra programming tools built in.

Glossary

  • Artifact: a bundle of files produced by a GitHub Actions workflow run, such as a build output or a test report.
  • Bounty: a payment a company makes to someone who reports a security bug to it.
  • Checkout: the working copy of a project's files that git has placed on disk for you.
  • Clone: to copy a repository from a server to your own machine.
  • Code execution (RCE): a bug where an attacker gets their own instructions to run on someone else's computer.
  • Command line tool: a program you operate by typing commands instead of clicking buttons.
  • commondir: a file inside .git that tells git where the repository's shared data lives; if present, git reads configuration from the path it names.
  • Configuration (gitconfig): settings that tell git how to behave, including which external programs to run for certain tasks.
  • CVE: a public catalogue number for a known vulnerability.
  • CVSS: a standard scoring system for the severity of a vulnerability.
  • Executable bit (+x): the file permission that marks a file as a program the system may run.
  • Flag: an option you add to a command to change its behaviour, such as --dir.
  • Git: a tool for tracking changes to files in a project folder.
  • GitHub: a website that hosts git repositories online.
  • GitHub Actions: GitHub's built-in automation that runs workflows and produces artifacts.
  • GitHub Desktop: a graphical application for working with git repositories.
  • Hook: a script git runs automatically at a set moment, for example before a commit.
  • IDE: an integrated development environment, an editor with programming tools built in.
  • Insider: someone with legitimate access to a project who misuses it.
  • Interactive: running a command without arguments and choosing from what it offers.
  • Path traversal: an attack where a file name uses .. to climb out of the intended folder.
  • Porcelain: git's everyday, user-facing commands, as opposed to its low-level plumbing commands.
  • Proof of concept (PoC): a small demonstration that an attack really works.
  • Repository (repo): a project folder that git watches, including the hidden .git folder with its history and settings.
  • Shell: a program that reads the commands you type, such as zsh or PowerShell.
  • Social engineering: tricking a person into an action, such as cloning a repository or running a command.
  • Triage: the first review where a security team decides whether a report is valid and how serious it is.
  • Workflow run: one execution of a GitHub Actions workflow, identified by a run id.
  • zsh: a shell, a program that reads the commands you type.

More by Vladimir Metnew

View all

5 more disclosed reports, best first.

More from GitHub

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.