Live data from Hacker News

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

github.com

11–20 of 111 posts

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

#11

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?

Yeah, though SSH is already very mature at processing text, so it's a surprisingly good fit for a chat. I would also remember that any machine you SSH from is going to give the server some metadata like IP address, public keys (which aren't useful as creds but can be for tracking). Really fun little project though

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

#15
post #5
post #4

Normal talk in unices system can do that. Irc have exange data between server and minimalize data trafic. still irc is better, but meybe in future

There was also `write` [0]. It would literally parse /etc/utmp [1] to find out which terminal the recepient user was logged on, then it would open that terminal and write(2) the message to it. Ah, wonderful user isolation. [0] https://man.cat-v.org/unix-6th/1/write [1] https://man.cat-v.org/unix-6th/5/utmp

I still use posix write [1] if there is an incident and i want to talk to the other admins that all try to fix sth. Quite fünf AS the younger ones are always Quote puzzled and feel caught...

[1] https://manpages.org/write

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

#20

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?

Yeah, though SSH is already very mature at processing text, so it's a surprisingly good fit for a chat. I would also remember that any machine you SSH from is going to give the server some metadata like IP address, public keys (which aren't useful as creds but can be for tracking). Really fun little project though

SSH might be, but maybe not your terminal. Which the very least can possibly trick you using escape codes. Also, unless my memory fails me 'cat'ing an untrusted file isn't recommended for security reasons.

Additionally you should disable SSH forwarding. Relevant thread from the startup selling coffee over SSH: https://news.ycombinator.com/item?id=40227624

Post reply on HN