Description
A deployer wallet private key is hardcoded in two locations and should be treated as compromised.
Locations
scripts/deploy-marketplace.js line 18 — plaintext private key 0xcb601f...
backend/.env — the same key is stored and this file is NOT in .gitignore (only root .env is ignored, not backend/.env)
Impact
Anyone with access to this repo can drain the deployer wallet on testnets and deploy contracts impersonating the owner.
Fix
Description
A deployer wallet private key is hardcoded in two locations and should be treated as compromised.
Locations
scripts/deploy-marketplace.jsline 18 — plaintext private key0xcb601f...backend/.env— the same key is stored and this file is NOT in.gitignore(only root.envis ignored, notbackend/.env)Impact
Anyone with access to this repo can drain the deployer wallet on testnets and deploy contracts impersonating the owner.
Fix
scripts/deploy-marketplace.js— use env vars viaprocess.env.DEPLOYER_PRIVATE_KEYbackend/.envto.gitignoregit rm --cached backend/.env