Skip to content

scripts/invoke.mjs accepts the signer's secret key as a plain CLI argument #123

Description

@chonilius

Same issue as scripts/deploy.mjs's sibling: scripts/invoke.mjs reads the secret key from process.argv[2] per its usage line (Usage: node invoke.mjs <secret> <contractId> <method> [args...]), which is even more exposed in practice since invoke.mjs is the script used for every subsequent contract call (including initialize, and per README's example, release-style admin calls) — not just a one-time deploy. Every invocation leaks the admin/oracle key into shell history and process listings. Same fix direction: environment variable or masked interactive prompt instead of an argv position.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdocumentationImprovements or additions to documentationhelp wantedExtra attention is neededsecuritySecurity-related issuevery hardVery difficult task, expert-level effort required

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions