GHSL-2020-267: Unauthorized repository modification or secrets exfiltration in GitHub workflows of Antvis repositories
Several Antvis GitHub workflows used the pull_request_target trigger but then checked out and built code from the pull request's fork. An attacker could therefore run their own code with the base repository's write token and secrets, allowing repository modification or secret theft.
Multiple antvis 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
Root cause
The workflow combined the privileged pull_request_target trigger with an explicit checkout and build of the untrusted pull request merge ref.
Impact
An attacker could modify the base repository and exfiltrate secrets, though the text does not show an exploit actually being carried out.
What the attacker needed
Ability to open a pull request from a fork
The fix
The issue was fixed by the maintainers after a partial fix and repeated contact attempts.
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 can run automated jobs when someone opens a pull request. A special trigger called pull_request_target gives that job powerful permissions and secrets, on the promise that it only runs trusted code. Here the job fetched and built the contributor's code anyway, so a stranger's code got those powers.