Skip to content

fix: http and websocket proxy endpoints lack authent... in index.ts - #7911

Open
anupamme wants to merge 1 commit into
coder:mainfrom
anupamme:fix-repo-code-server-proxy-auth-middleware-v001
Open

fix: http and websocket proxy endpoints lack authent... in index.ts#7911
anupamme wants to merge 1 commit into
coder:mainfrom
anupamme:fix-repo-code-server-proxy-auth-middleware-v001

Conversation

@anupamme

Copy link
Copy Markdown

Summary

Fix critical severity security issue in src/node/routes/index.ts.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File src/node/routes/index.ts:113
Assessment Likely exploitable
Chain Complexity 2-step

Description: HTTP and WebSocket proxy endpoints lack authentication middleware, allowing unauthenticated users to proxy requests to any port on the server. This bypasses network security controls and exposes internal services.

Evidence

Exploitation scenario: Send GET request to /proxy/6379/ to access Redis database or connect via WebSocket to ws://target-server/proxy/22/ to access SSH service without authentication.

Scanner confirmation: multi_agent_ai rule V-001 flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Threat Model Context

This route handler appears to be publicly accessible. This is a web service - vulnerabilities in request handlers are directly exploitable by remote attackers.

Changes

  • src/node/routes/index.ts

Behavior Preservation

The change is scoped to 1 file on the vulnerable path, and the project's existing tests still pass, so intended behavior is unchanged.

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
@anupamme
anupamme requested a review from a team as a code owner July 29, 2026 02:20
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