Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled EOFError #10

Open
hyperioxx opened this issue Oct 19, 2018 · 2 comments
Open

Unhandled EOFError #10

hyperioxx opened this issue Oct 19, 2018 · 2 comments

Comments

@hyperioxx
Copy link

hyperioxx commented Oct 19, 2018

I received this traceback, I think it may be related to the RFC reference below the traceback

Traceback (most recent call last):
File "CVE-2018-10933.py", line 44, in
main(**vars(args))
File "CVE-2018-10933.py", line 29, in main
cmd_channel = transport.open_session()
File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 806, in open_session
timeout=timeout,
File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 933, in open_channel
raise e
EOFError

  5.3.  Closing a Channel

  When a party will no longer send more data to a channel, it SHOULD
  send SSH_MSG_CHANNEL_EOF.

  byte      SSH_MSG_CHANNEL_EOF
  uint32    recipient channel

  No explicit response is sent to this message.  However, the
 application may send EOF to whatever is at the other end of the
 channel.  Note that the channel remains open after this message, and
 more data may still be sent in the other direction.  This message
 does not consume window space and can be sent even if no window space
 is available.
@tengjunfeng
Copy link

same me

@hyperioxx
Copy link
Author

The server's closing the session so it's not affected by CVE-2018-10933
Just set up an exception to catch EOFError with a debug line stating that the server have closed the session/channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants