GHSL-2020-330: Unauthorized repository modification or secrets exfiltration in two akka repositories
The GitHub workflows in two akka repositories used pull_request_target and explicitly checked out and ran code from a fork, so untrusted code ran with write access to the base repository and access to secrets. An attacker could modify the base repository or exfiltrate secrets.
The alpakka-kafka/link-validator.yml and akka-grpc/link-validator.yml GitHub workflows are vulnerable to unauthorized modification of the base repository or secrets exfiltration from a Pull Request.
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
The vulnerability allows for unauthorized modification of the base repository and secrets exfiltration.
What the attacker needed
Pull_request_target workflow; attacker can open a pull request from a fork
The fix
The issue was fixed on 2020-12-11.
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 can be triggered by pull requests. The pull_request_target trigger gives the workflow powerful permissions, including write access and secrets, but normally runs in the safe context of the base repository. Here the workflow also checked out and ran code from the fork, so an attacker's code got those powerful permissions.