Topic "incoming packet was garbled on decryption errors in WinSCP 5"

Author Message
JMW

Guest


Hi,

I recently upgraded to the latest release (5.7) and found I was getting lots of 'incoming packet was garbled on decryption' errors when copying files to a server.

I've downgraded back to the previous version (5.5.6) and haven't seen this error occurr once when copying the same set of files to the server.

Has something broke between the versions?

Cheers,

Jonathan
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Please attach a full log file showing the problem (using both versions of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
barrettcolin
[View user's profile]

Joined: 2015-04-05
Posts: 1
I apologize for jumping into this thread, but maybe I can help; I too have observed "Incoming packet was garbled" errors when SFTPing files to a Debian wheezy/openssh server using WinSCP 5.7.1 but not - as the OP indicated - with WinSCP 5.5.6

I've attached logs from both (the operations weren't exactly the same, but hopefully that isn't important here)- let me know if there's anything else I can do
winscp_5.7.1.log (10.51 KB) [Download]

Description: (none)

winscp_5.5.6.log (13.64 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Thanks for your report. I have sent you a development version of WinSCP for testing. It might fix your problem. Let me know.
Gerard

Guest


Do you have an update on this? I have it too, all the time.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Can you send me an email, so I can send you back a development version of WinSCP for testing? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
cedral
[View user's profile]

Joined: 2015-10-02
Posts: 2
Location: Austin, Texas, USA
I am seeing this issue as well. I sent you an email as requested. And I am noting it here as requested also.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
cedral wrote:
I am seeing this issue as well. I sent you an email as requested. And I am noting it here as requested also.

Please first attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
_________________
Martin Prikryl
cedral
[View user's profile]

Joined: 2015-10-02
Posts: 2
Location: Austin, Texas, USA
Alright, I have generated logs from my server showing unencrypted outbound packets and iv encryption numbers followed by outbound encrypted packets. I have modified winscp to display the IV when decrypting and the blocksize long encrypted value when the decrypted packet length is garbled.

What I see is that winscp is skipping several packets and thus attempting to decrypt with the wrong IV. I generated a capture using network monitor on the server and found all the packets going out in order. I did notice that several packets are going out in the same TCP frame. The first one in that frame is the last one that winscp successfully decrypts. The rest in that frame get ignored and winscp tries to process the packet in the following frame is if though there had been no intervening packets.

I am attaching a zip with 3 files that show the problem.
1. server2client_tcpstream.txt, a text file containing the tcp payload for the 2 frames in question
2. debug.log, a pruned log showing the relevant outbound data from the server
3. ssh1.log, the modified winscp log.

If you want the network capture that file 1 was derived from just let me know. It is too large but I can put it on a webserver and send a url via email.

If you would like to contact me directly via email I can give you an account on this server. the bug is speed dependent. you need be able to upload at faster than about 1400 KB/s for it to happen so you may or may not be able to reproduce it. It varies when it happens, though it almost always happens before 200 MBs have been uploaded.
Archive.zip (59.7 KB) Private file

Description: 1. server2client_tcpstream.txt, a text file containing the tcp payload for the 2 frames in question
2. debug.log, a pruned log showing the relevant outbound data from the server
3. ssh1.log, the modified winscp log.

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Thanks for your analysis! I've contacted you on your email address.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1365
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License