Summary
src/utils/security/blockchainSecurity.ts reads (window as any).__CHAINALYSIS_API_KEY__ from global window, making the key trivially extractable from the bundle / runtime.
Affected area
src/utils/security/blockchainSecurity.ts end of file
Steps to reproduce / impact
Browser users can extract API keys via DevTools, exposing third-party services to quota theft and abuse.
Expected behaviour
Move API keys to a Next.js API route that proxies requests; the browser should never see the key. If a key is unavoidable, restrict by domain and rotate regularly.
Acceptance criteria
Summary
src/utils/security/blockchainSecurity.tsreads(window as any).__CHAINALYSIS_API_KEY__from global window, making the key trivially extractable from the bundle / runtime.Affected area
src/utils/security/blockchainSecurity.tsend of fileSteps to reproduce / impact
Browser users can extract API keys via DevTools, exposing third-party services to quota theft and abuse.
Expected behaviour
Move API keys to a Next.js API route that proxies requests; the browser should never see the key. If a key is unavoidable, restrict by domain and rotate regularly.
Acceptance criteria
/api/security/address-checkproxy.__global is shipped.