jpillora / jpillora/chisel

Require/generate --auth username:$(random password...) by default

Open
#366 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
16.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Considering the power of the tunnel that chisel creates (it gives access to all localhost ports by default, without authentication!) it would be prudent to force users to supply some sort of credentials by default when starting the chisel server.

When starting the server without --auth, it should autogenerate some credentials.

Alternatively, maybe there could be a simpler way to specify authorization rules than the users.json file.
I think whiltelisting should be used for ports, so that by default, no ports are accessible.

We can use chisel to ssh into servers from within restrictive networks that only allow http traffic. But for that purpose, we only need access to port 22 on the server running chisel server, not all the rest of ports.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reviewing the server's --auth startup behavior and how users.json currently expresses authorization. Define whether the intended result is autogenerated credentials, simpler authorization rules, port whitelisting, or a combination, then verify that unauthenticated servers expose no ports beyond the documented default.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, networking, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.