# "Pwn requests": pull_request_target & workflow_run

incident, `incident:pwn-requests`. Page: https://ghtier.com/incidents/pwn-requests

A workflow on pull_request_target or workflow_run runs in the base repository with its secrets and a write token, so when it also checks out and runs the pull request's code, or takes in its artifacts or title, anyone who can open a pull request runs code with those privileges.

**Abused:** [Contents: Write (repository)](https://ghtier.com/tier/permissions/contents-write.md) (Tier 2)

**Used:** [Run PR code in a privileged workflow](https://ghtier.com/attack-paths/technique-pwn-request.md) (Tier 1)

**Sources:**
- [Keeping your GitHub Actions and workflows secure: preventing pwn requests](https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/)
- [The case for GitHub Actions security after recent supply chain attacks](https://securitylabs.datadoghq.com/articles/case-for-github-actions-security/)
- [Vulnerable GitHub Actions workflows: privilege escalation](https://www.legitsecurity.com/blog/github-privilege-escalation-vulnerability)
- [Actions pull_request_target and environment branch protections changes](https://github.blog/changelog/2025-11-07-actions-pull_request_target-and-environment-branch-protections-changes/)
- [The Pwn Request Reckoning: What Still Works Against GitHub Actions](https://www.wiz.io/blog/github-actions-security-pwn-request-reckoning)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
