News for hackers. Stuff that matters.
Re:Using SSH_config Match to connect to a host using multipl... by ape4 on Wednesday August 17, 2022 @11:01AM (#32497328)
Yeah seems like there should be an option to disable that
Re:Using SSH_config Match to connect to a host using multipl... by blueflow on Wednesday August 17, 2022 @01:54PM (#32499584)
Its not increasing any attack surface, or can you construct a situation where it could be exploited?
Re:Using SSH_config Match to connect to a host using multipl... by HvTfMhdTZ8Lths6 on Wednesday August 17, 2022 @07:01PM (#32502913)
Well, setups using forced commands are relatively common with SSH (case in point: probably any Git server you've ever accessed over SSH); if one of those setups also allowed their user to specify ssh_config rules without realizing that Match can exec things there'd be a problem. I think that's a bit of a stretch though.
Re:Using SSH_config Match to connect to a host using multipl... by blueflow on Wednesday August 17, 2022 @07:06PM (#32502954)
The ForcedCommand is server-side, the Match exec from ssh_config is done client-side. The server has no way to enforce which commands the client can run locally.