GHSL-2024-276: Actions expression injection in Ant-design-blazor
The preview-deploy workflow used the contents of a file from an attacker-controlled pull request as part of a shell command, allowing command injection. An attacker could steal the SURGE_TOKEN secret and modify the repository because the workflow had write permissions.
Ant-design-blazor is vulnerable to Actions expression injection 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
Root cause
The workflow interpolated untrusted data from a pull request artifact directly into a shell command without sanitisation.
Impact
This could lead to stealing the SURGE_TOKEN secret and modifying the repository because the workflow runs with full write permissions.
What the attacker needed
Ability to open a pull request
The fix
The issue was fixed by a pull request that was merged.
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, the script took a value from an untrusted pull request and put it directly into a command, so an attacker could sneak in extra commands. That let them steal a secret token and change the repository.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.