Skip to content
RCE Advisory Intermediate

GHSL-2021-013: Command injection in pythonpune/meetup-talks workflow

A GitHub Actions workflow used the body of an issue comment directly in a shell command, allowing an attacker to inject arbitrary commands. This could let an attacker modify the repository and exfiltrate secrets.

jarlob Follow

Originally disclosed on GitHub Security Lab

GitHub workflow in pythonpune/meetup-talks GitHub repository repository is vulnerable to arbitrary code execution from user comments.

jarlob, on GitHub Security Lab

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.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

What the attacker needed

Ability to comment on an issue

The fix

The issue was resolved, likely by avoiding direct interpolation of untrusted input into shell commands.

How it was found

  1. Create an issue comment containing a command injection payload.
  2. The workflow triggers on the issue_comment event and runs the shell command with the comment body.
  3. The injected commands execute in the workflow environment.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A GitHub Actions workflow is an automated script that runs when something happens on GitHub, like a new comment. Here, the workflow took the text of a comment and put it straight into a command that the computer runs. Because the comment text was not cleaned, someone could write a comment that includes extra commands, and those commands would run on the project's servers.

What is RCE?

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

More by jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

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.