# Release-Drafter To google/accompanist Compromise: VRP Writeup

Dependabot actor-confusion Pwn Request in release-drafter's post-update workflow yielded a write GITHUB_TOKEN, letting anyone retag v5 and backdoor all tag-pinned downstream users like google/accompanist.

- Payout: $7,500
- Severity: high
- Program: Google
- Found by: Adnan Khan
- Disclosed: 2024-11-11
- Write-up quality: 8/10
- Original: https://adnanthekhan.com/2024/11/11/release-drafter-to-google-accompanist-compromise-vrp-writeup/
- Library page: https://bugbountylibrary.com/r/blog%3Aadnanthekhan-com-2024-11-11-release-drafter-to-google-accompanist-compromise-vrp-writeup
- Tags: area:oss domain:oss impact:integrity impact:rce kind:bounty platform:blog sev:high tech:github-actions tech:nodejs technique:chained vuln:rce

**Target:** GitHub Actions reusable action (release-drafter) and downstream workflow (google/accompanist)
**Root cause:** release-drafter's Dependabot post-update workflow used pull_request_target, checked out PR head, and ran setup-node with cache:yarn, making package.json an injection point; the dependabot[bot] actor guard was bypassable via a synchronize event from a fork.
**Steps:**
1. Fork release-drafter/release-drafter and enable Dependabot on the fork
2. Push payload into package.json (or setup-node cache path) on fork's default branch
3. Create a fork PR from the Dependabot-created feature branch to the upstream repo
4. Comment `@dependabot recreate` in the PR Dependabot created within the fork to trigger a synchronize event in the base repo as dependabot[bot]
5. Workflow runs pull_request_target, checks out attacker head, setup-node cache executes payload, exfiltrating GITHUB_TOKEN
6. Use token to commit a composite-action change to action.yml, force-update the v5 tag, push
7. Downstream google/accompanist workflow pinned to v5 runs attacker payload on next push to main
**How found:** After reading Synacktiv's Dependabot actor-confusion post, searched for repos using pull_request_target + dependabot actor guard + setup-node cache; found release-drafter's post-update workflow matched, then traced downstream consumers pinning by mutable tag.
**Exploitation:** Attacker gains write GITHUB_TOKEN to release-drafter via actor-confusion Pwn Request, backdoors the mutable v5 tag with a composite action exfiltration payload, and any downstream repo using the action by tag (e.g. google/accompanist with full-write GITHUB_TOKEN) executes it on next workflow run, enabling code/release modification and PR merge.
**Escalation:** Chained upstream action compromise to downstream supply-chain impact across all tag-pinned consumers; noted NPM-token-bearing workflows (Near wallet-selector) as higher-value targets, and suggested encrypting payload keyed to target workflow to avoid collateral.
**Insight:** Grep reusable actions for `pull_request_target` + `if: github.actor == 'dependabot[bot]'` + `setup-node` with `cache:` — the cache step executes package.json scripts from PR head, and the actor guard is bypassable via fork-PR synchronize. Then check downstream consumers pinning by tag, not SHA.

