You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original reporter: kryostoffer
Affected version: OTP-21.2.1
Fixed in version: OTP-21.3
Component: ssh
Migrated from: https://bugs.erlang.org/browse/ERL-822
I have some networking equipment with a partly broken SFTP client implementation.
Everything with crypt, authentication, subsystem and channel is working fine. But the problem lies withing the SFTP protocol. The equipment is claiming to run SFTP client protocol version 3 but are sending a message with format introduced in version 4.
In attached trace at 18:08:29.454331 client is sending a SSH_FXP_STAT request, but as pr. https://tools.ietf.org/html/draft-ietf-secsh-filexfer-02 this message is incorrect as it contains what could be the flags fields, from a later versions of the protocol.
In the spirit of Postel's law I feel that the SFTP server implementation, could somewhat more liberal. When looking at the code, SFTP server does nothing with the flags anyway.
When I apply the attached patch, witch removes the strict version check for stat, the SFTP client can successfully communicate with the server.
The text was updated successfully, but these errors were encountered:
Please submit patches as Pull Requests in [github|https://github.com/erlang/otp/]
See [Contributing to Erlang/OTP|https://github.com/erlang/otp/wiki#contributing-to-erlangotp]. This patch could be based on the maint branch.
Original reporter:
kryostoffer
Affected version:
OTP-21.2.1
Fixed in version:
OTP-21.3
Component:
ssh
Migrated from: https://bugs.erlang.org/browse/ERL-822
The text was updated successfully, but these errors were encountered: