Skip to content

fix: add authentication check in server.js (CWE-287) - #691

Open
anupamme wants to merge 1 commit into
Blockstream:masterfrom
anupamme:fix-repo-esplora-cwe-287-metrics-auth
Open

anupamme wants to merge 1 commit into
Blockstream:masterfrom
anupamme:fix-repo-esplora-cwe-287-metrics-auth

Conversation

@anupamme

@anupamme anupamme commented Oct 7, 2026

Copy link
Copy Markdown

The /metrics endpoint in prerender-server exposes Prometheus metrics without any authentication or access control. The endpoint returns operational metrics including active render counts, total renders, and render duration statistics. While useful for monitoring, exposing these without authentication allows any network-connected attacker to gather reconnaissance data. The affected code is prerender-server/src/server.js:56. This change is the fix I would apply.

Reference: CWE-287

What changed

  • prerender-server/src/server.js

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
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