GHSL-2024-124_GHSL-2024-125: Actions expression injection and artifact poisoning in Quarkus
The Quarkus repository's preview workflow trusted attacker-controlled content from a pull request's documentation artifact, allowing command injection and execution of a malicious script. An attacker could steal workflow secrets and modify the repository.
Originally disclosed on GitHub Security Lab
Quarkus is vulnerable to Actions expression injection and Artifact Poisoning allowing an attacker to alter the repository and steal secrets.
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
This issue may lead to stealing workflow secrets and modification of the repository.
What the attacker needed
Ability to open a pull request
How it was found
- An attacker sends a pull request that modifies the doc-build.yml workflow to store arbitrary content in the documentation artifact.
- The preview.yml workflow is triggered on workflow_run after the documentation CI completes.
- The preview workflow downloads the documentation artifact and stores its content in a step output variable.
- That variable is interpolated into a run script, allowing command injection.
- The preview workflow also downloads and executes a script from the artifact.
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, like a pull request. Here, a workflow that runs after another workflow trusted files created by the pull request, so an attacker could put their own commands in those files and have them run with access to secrets.