GHSL-2024-327: Poisoned Pipeline Execution (PPE) in Microsoft FluentUI
The workflow 'pr-website-deploy-comment' downloads artifacts from a triggering workflow and uses the contents of a file as a step output, which is then interpolated into bash scripts without validation. An attacker could modify the triggering workflow to upload arbitrary content, leading to code execution in the deploy job and potential access to Azure credentials.
Originally disclosed on GitHub Security Lab
The pr-website-deploy-comment workflow is vulnerable to Poisoned Pipeline Execution (PPE).
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
Root cause
The workflow fails to validate the contents of an artifact file before interpolating it into a shell command, allowing command injection.
Impact
An attacker could execute arbitrary code in the deploy job, potentially obtaining a JWT to log in to Azure CLI and access the FluentUI website, allowing injection of XSS or malware links.
What the attacker needed
Ability to create a pull request; modify the triggering workflow
The fix
The issue was fixed in commit d77384f.
How it was found
- Create a pull request that modifies the triggering workflow to upload arbitrary content to pr.txt.
- The triggering workflow runs and completes successfully.
- The vulnerable workflow downloads the artifact and loads pr.txt into a step output.
- The step output is interpolated into a bash script, executing the attacker's commands.
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.
This is a bug in an automated workflow (a set of steps run by GitHub Actions). The workflow takes a file from a pull request and uses its content directly in a command without checking it. An attacker can put malicious commands in that file, and when the workflow runs, those commands execute with access to secret keys.