GHSL-2023-050: Command Injection in Apache Doris repository's CI workflow
The Apache Doris repository's GitHub Actions workflow auto_trigger_teamcity.yml was vulnerable to command injection because it used the full text of an issue comment in a shell command. An attacker could post a crafted comment to execute arbitrary commands on the GitHub Runner, potentially stealing secrets and modifying the repository.
Apache Doris repository is vulnerable to a Command Injection in autotriggerteamcity.yml.
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
Impact
An attacker could execute arbitrary commands on the GitHub Runner, potentially stealing workflow secrets and modifying the repository.
What the attacker needed
GitHub account; Ability to comment on issues in apache/doris
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 in a repository, like a new comment. This workflow took the comment text and inserted it directly into a shell command without checking it. That meant someone could write a comment that included extra shell commands, and those commands would run on the server with the workflow's permissions.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.