GHSL-2024-277: Actions expression injection in Appsmith
A reusable GitHub Actions workflow in Appsmith interpolated an untrusted commit message directly into a bash script, allowing command injection. An attacker could execute arbitrary commands, steal secrets such as Docker Hub credentials and Cypress tokens, and gain write access to the repository.
Appsmith 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
What the attacker needed
Ability to trigger the reusable workflow; control over a commit message
The fix
The issue was fixed in commit e0fb8f9.
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.
GitHub Actions workflows often run shell commands. If a workflow inserts user-controlled data, like a commit message, directly into a shell command without sanitising it, an attacker can include shell syntax that gets executed. Here, a crafted commit message could run extra commands, letting the attacker read secrets stored in the workflow and modify 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.