Skip to content

fix(security): harden verifier command execution#3

Draft
Canvinus wants to merge 5 commits into
mainfrom
hardening/backend-security
Draft

fix(security): harden verifier command execution#3
Canvinus wants to merge 5 commits into
mainfrom
hardening/backend-security

Conversation

@Canvinus
Copy link
Copy Markdown
Contributor

Summary

  • Replace verifier near and Git shell-string calls with argument-based execFile(..., shell: false).
  • Validate networkId, NEAR account IDs, GitHub source snapshot URLs, and pinned 40-character commit SHAs before executing verifier commands.
  • Ensure temporary clone folders are cleaned up on IPFS/pinning failures.
  • Apply non-breaking npm audit lockfile updates.

Validation

  • npm test -- --runInBand
  • npm run build
  • npm run lint
  • git diff --check
  • npm audit --omit=dev now only reports the known low-severity near-api-js/elliptic chain requiring a semver-major near-api-js@7.2.0 migration.

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