Lightning Talk: One Line of YAML Leaks Your Secrets: The Pwn-Request Pattern
summary
A single workflow pattern — pull_request_target combined with checkout: head.sha — lets untrusted PR code run with repo secrets. A case in May on Apache Doris is reported, disabled same day and deleted three months later. A scanner and handcrafted scripts scan 2,025 repos across 99 orgs, flag 41 pattern matches and find a few (<10) truly exploitable cases; one multi‑hop artifact injection evades simple greps. Practical fixes merged into projects (ESLint, Vue.js, OpenSSF, GSA, Code for America): split workflows, use persist-credentials: false, and only run privileged jobs for same-repo PRs.
AI-written summary · about
chapters (11)
- 0:00The pwn-request bug
- 0:24Understanding the triggers
- 0:47The attack mechanism
- 1:39Common misconceptions
- 2:06Case study: Apache Doris
- 2:37Scaling the discovery
- 3:33Hard-to-detect vulnerabilities
- 5:02Remediation efforts
- 5:22Recommended best practices
- 7:25Audit your repositories
- 8:12Key takeaways and conclusion
