Re: Incorrect protocol implementation by OpenSSH?
- From: "H.K. Kingston-Smith" <HKK-S@xxxxxxxxx>
- Date: Fri, 28 Sep 2007 20:24:16 GMT
On Fri, 28 Sep 2007 19:14:35 +0100, Ben Harris wrote:
In article <pan.2007.09.28.16.09.52@xxxxxxxxx>, H.K. Kingston-Smith
<HKK-S@xxxxxxxxx> wrote:
On Fri, 28 Sep 2007 12:18:33 +0100, Ben Harris wrote:
If the server S does not support a certain type of request (exec,
in this case) and the client C sends an SSH_MSG_CHANNEL_REQUEST message
of that type, with want-reply set to 0, what is S supposed to do?
Ignore it. If the client wanted a reply, it would have set 'want reply'
to true. If 'want reply' is false, the client isn't expecting a reply
and is likely to be terribly confused if one arrives.
So what's the OpenSSL client doing here? It does not want to have
a reply of any sort. What is it then expecting for the server to do if
the server can't honor the request?
I suspect the OpenSSH maintainers simply haven't considered the
possibility, or hadn't in 2000 when the code was written. RFC 4254
(section 6.5) certainly counsels against such optimism:
It is RECOMMENDED that the reply to these messages be requested and
checked.
There are usually some of OpenSSH's authors lurking around here, so they
might be able to explain this decision, or you may have to ask them
directly.
I have just checked out that an SSH conversation between an
OpenSSH (I just noticed that I wrote OpenSSL in several places instead;
my apologies for that) server and an OpenSSH client does indeed end up
deadlocked in the situation I describe (I used version 4.7p1, changing
the channel request for a shell so that the client sends a request for a
"thell" :-)
Based on this, ignoring the request is not an option: The server
should send something back. What should it send back? The standard does
not seem to have anything to say about this.
Can anybody throw some further light into this?
.
- Follow-Ups:
- Re: Incorrect protocol implementation by OpenSSH?
- From: Ben Harris
- Re: Incorrect protocol implementation by OpenSSH?
- References:
- Incorrect protocol implementation by OpenSSH?
- From: H.K. Kingston-Smith
- Re: Incorrect protocol implementation by OpenSSH?
- From: Ben Harris
- Re: Incorrect protocol implementation by OpenSSH?
- From: H.K. Kingston-Smith
- Re: Incorrect protocol implementation by OpenSSH?
- From: Ben Harris
- Incorrect protocol implementation by OpenSSH?
- Prev by Date: Re: Incorrect protocol implementation by OpenSSH?
- Next by Date: Re: "Host key did not match signature" error during rekey
- Previous by thread: Re: Incorrect protocol implementation by OpenSSH?
- Next by thread: Re: Incorrect protocol implementation by OpenSSH?
- Index(es):
Relevant Pages
|
|