This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

POP auth method insecurely but impossible to found PASS in Wireshark!

0

Hello,

When I analyze POP packets with Wireshark, when I receive emails with Outlook, I can see USER and PASS commands with username and password transmitted unecrypted.

But if I try to get my emails with Thunderbird (without encryption), I CANNOT see in Wireshark USER and PASS commands, and for sure, no username and password !!

But there are new commands :

  • AUTH : PLAIN
  • Request command : AGNsZW1lbnQuYm9ubmFsADJ4cgt0OQ==

I don't understand why, is there a way to get them ??

asked 03 Feb '12, 13:56

Cl%C3%A9ment%20Bonnal's gravatar image

Clément Bonnal
1223
accept rate: 0%


One Answer:

1

Hello Clément,

the information is Base 64 encoded and can be decoded easily (but Wireshark does not do that for you). The strange output is due to null bytes being present in the decoded string. See RFC 2595 [2] for more information.

echo "AGNsZW1lbnQuYm9ubmFsADJ4cgt0OQ==" | base64 -d
clement.bonnal2xr
                 t9

The plain authentication method only uses one command to transmit the credentials, unlike the login method which uses two commands(user,pass).

[1] http://www.fehcom.de/qmail/smtpauth.html [2] http://tools.ietf.org/html/rfc2595[2]

answered 05 Feb '12, 05:28

otr's gravatar image

otr
163
accept rate: 0%

edited 05 Feb '12, 05:30

As the question refers to Outlook, it's likely that the user is on windows without access to the usual Unix utils. A PowerShell equivalent is shown below:

[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("AGNsZW1lbnQuYm9ubmFsADJ4cgt0OQ=="))
(06 Feb '12, 07:19) grahamb ♦