Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

The value of hashed-password can be used to open CodeServer directly, which has security problem

Open
#7,696 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Start by tracing how the auth setting in ~/.config/code-server/config.yaml is read and how the code-server-session cookie is validated after the login page. Reproduce the behavior with the listed code-server command and jupyter_server_proxy URL, then verify that the hashed-password value cannot itself authenticate a session.

Written by the indexing model from the issue text.

Description

bug security triage
Is there an existing issue for this?
  • I have searched the existing issues
OS/Web Information
  • Web Browser: Chrome 143.0.7499.170
  • Local OS: windows
  • Remote OS: ubuntu 22.04, jupyterlab service
  • Remote Architecture: x86
  • code-server --version: v4.108.0
Steps to Reproduce
  1. prepare "hashed-password" using command echo -n "xxx" | npx argon2-cli -e
  2. edit ~/.config/code-server/config.yaml,auth: password, hashed-password:"$argon2i$v=19$m=4096,t=3,p=1$xxx$xxx"
  3. start code-server using command code-server --port 7756
  4. using jupyter_server_proxy to visit code-server service, concatenate a URL as https://base_url/proxy/7756/
  5. when the code-server login page occurs, skip input the xxx into the password area. F12 edit the application cookie, set key=code-server-session, value="$argon2i$v=19$m=4096,t=3,p=1$xxx$xxx", refresh the browser
Expected

Failed to login into the code-server. The hashed-password in the config.yaml should not be the plain credentials

Actual

successfully login into the code-server

Dominant language
TypeScript
Stars
79.4k
Forks
6.9k
Avg merge
2d 13h
Merged PRs (30d)
39

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coder/code-server

All issues in coder/code-server

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.