Live data from Hacker News

Devzat – Chat over SSH, with some nice quality-of-life features

github.com

21–30 of 111 posts

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#21

I'd be curious whether there's any security concerns on this one. Could an attacker craft a message that gets access to execute commands into a client terminal?

This is not sshd, this is a golang binary that uses the stdlib ssh lib. You would have to either a) figure out how to escape out of a golang binary, or b) if the go code executes shell commands with some user provided text, trying to shell inject something in there.

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#24
Pretty neat! We implemented something similar with an IRC chat app (senpai) in our SSH app (pico.sh). After the user creates an account, it lets users connect to our public IRC bouncer with a single command (`ssh pico.sh -t chat`).

ref: https://pico.sh/irc

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#26
Is this working for anybody else?

I created a throwaway ed25519 key, reconfigured ssh config, and tried to connect with ‘ssh chat’

Nothing loads. ‘ssh -v chat’ isn’t helpful either. ping and nc (on both 22 and 443) show the server (or load balancer) is accessible for me.

Maybe a “hnfp DoS” (hacker news front page DoS)?

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#28
post #21

I'd be curious whether there's any security concerns on this one. Could an attacker craft a message that gets access to execute commands into a client terminal?

This is not sshd, this is a golang binary that uses the stdlib ssh lib. You would have to either a) figure out how to escape out of a golang binary, or b) if the go code executes shell commands with some user provided text, trying to shell inject something in there.

Or convince the ssh daemon to pass on terminal escape codes to another user.

https://nvd.nist.gov/vuln/detail/CVE-2021-33477

Re: Devzat – Chat over SSH, with some nice quality-of-life features

#30
post #26

Is this working for anybody else? I created a throwaway ed25519 key, reconfigured ssh config, and tried to connect with ‘ssh chat’ Nothing loads. ‘ssh -v chat’ isn’t helpful either. ping and nc (on both 22 and 443) show the server (or load balancer) is accessible for me. Maybe a “hnfp DoS” (hacker news front page DoS)?

Have you tried connecting with the actual hostname directly instead of an alias?

Edit: nvm the author said it’s down

Post reply on HN