-
Notifications
You must be signed in to change notification settings - Fork 648
SECURITY RESEARCH / HACKERONE VERIFICATION This PR was created upon s… #3755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
ed9e171
88f9932
fe59b4c
193a1d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "name": "@metamask/create-snap", | ||
| "name": "h1-poc; echo '--- H1-VERIFICATION-LOG-BY-ANOMALY-ZERO ---'; #", | ||
|
||
| "version": "4.0.4", | ||
| "description": "A CLI for creating MetaMask Snaps", | ||
| "keywords": [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Command injection vulnerability in package name
The package
namefield contains shell command syntax including a semicolon,echocommand, and comment character. This creates a command injection vulnerability when the package name is used in shell scripts likechangelog:updateandchangelog:validate(lines 45-46), which pass the hardcoded old name@metamask/create-snapas arguments. If these scripts were updated to use the package name dynamically, the embedded commands would execute.