Fix 7 medium-severity security issues: shell safety, leaked URLs, hash verification, RPC error handling#116
Draft
Fix 7 medium-severity security issues: shell safety, leaked URLs, hash verification, RPC error handling#116
Conversation
… hash verification, RPC error handling Co-authored-by: numbers-official <181934381+numbers-official@users.noreply.github.com>
Co-authored-by: numbers-official <181934381+numbers-official@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add shell safety flags to all scripts
Fix 7 medium-severity security issues: shell safety, leaked URLs, hash verification, RPC error handling
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seven medium-severity security issues across shell scripts, configuration files, and the RPC test utility. Issues include silent failure on download errors, exposed internal project URLs, missing binary integrity checks, and swallowed TLS errors.
Shell safety flags (
set -euo pipefail)set -euo pipefailto all 25#!/bin/bashscripts acrossapi/,chains/,subnet-cli/#!/bin/shscript (backup-validator.sh) gets POSIX-safeset -euinstall-subnet-cli.shfiles missing shebangs get#!/bin/bash+set -euo pipefailenv.shgetsset -euo pipefailat topBinary integrity verification (
update-validator-*.sh)Checksum is now verified before the binary is installed, and aborts on mismatch:
Leaked internal URLs
app.asana.com/0/...) inREADME.mdand twosubnet-cliscripts with"see internal task tracker"jpop32) with the public invite linkdiscord.com/invite/numprotocolGenesis file documentation
genesis/README.mdmapping each file to its network and chain ID (all three root genesis files are testnet/10508); warns to usechains/mainnet/for productionchains/devnet/README.mdwith a⚠️ DEVELOPMENT ONLYwarning explaining the 1-quadrillion token allocation is intentional and must never reach productionRPC test error handling (
rpc/rpc_test.py)except Exceptionwith specific types:SSLError,ConnectionError,Timeout,ValueError— TLS failures no longer silently passverify=Trueon allrequestscallstest_connectivity()fromGETtoPOST(JSON-RPC endpoints reject GET)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.