LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2019, 12:45 PM   #1
pobrika
Member
 
Registered: Jan 2008
Location: Bournemouth, UK
Distribution: Mint, #!, Fedora, Redhat, Centos
Posts: 70

Rep: Reputation: 18
Sendmail Dovecot and clear text passwords


Hey all,

I have a situation where I am trying to recreate an issue on a server at work, where pen testing has identified clear text passwords on pop3.

What I'd like to do is use tcpdump on my test server to display clear text passwords over pop3, however I'm not seeing them.

I have installed sendmail and dovecot and configured them with a basic config.

Code:
[root@mail ~]# cat /etc/redhat-release
CentOS release 6.10 (Final)
[root@mail ~]# rpm -qa | grep send
sendmail-cf-8.14.4-9.el6_8.1.noarch
sendmail-8.14.4-9.el6_8.1.x86_64
[root@mail ~]# rpm -qa | grep dovecot
dovecot-2.0.9-22.el6.x86_64
I can connect with thunderbird from my laptop over port 110 and sendmail using port 25, I've tested delivery to my test domain and also an other email account which works.

When using tcpdump though I cant see any passwords, however using the same tcpdump syntax on my work server I can see them? I have set /etc/dovecot/dovecot.conf to "disable_plaintext_auth = no"

Does anyone know how I lessen the security, or change something so I can see my mail in a less secure way. (makes me laugh, I'm always the one wanting more security on my linux servers and today I'm trying to do the opposite)

Code:
 [root@mail paul]# tcpdump port smtp or port imap or port pop3 -l -A
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
18:34:33.098089 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [S], seq 807491961, win 8192, options [mss 1260,nop,wscale 2,nop,nop,sackOK], length 0
E..4B:@.....R......|qc..0!Yy...... .L.................
18:34:33.098135 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [S.], seq 3002523238, ack 807491962, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
E..4..@.@.2....|R.....qc...f0!Yz..9.................
18:34:33.120347 IP cpc84003-pool15-2-0-cust175.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [.], ack 1, win 4410, length 0
E..(B>@.....R......|qc..0!Yz...gP..:
>...N....
18:34:33.236777 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [P.], seq 1:97, ack 1, win 115, length 96
E.....@.@......|R.....qc...g0!YzP..s.a..220 mail.greenmatrix.duckdns.org ESMTP Sendmail 8.14.4/8.14.4; Wed, 18 Sep 2019 18:34:33 +0100

18:34:33.261624 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [P.], seq 1:23, ack 97, win 4386, length 22
E..>B?@.....R......|qc..0!Yz....P..".S..EHLO [192.168.1.101]

18:34:33.261657 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [.], ack 23, win 115, length 0
E..(..@.@......|R.....qc....0!Y.P..s....
18:34:33.261953 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [P.], seq 97:334, ack 23, win 115, length 237
E.....@.@......|R.....qc....0!Y.P..s....250-mail.greenmatrix.duckdns.org Hello cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net [82.17.243.176], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP

18:34:33.281453 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [P.], seq 23:92, ack 334, win 4326, length 69
E..mBA@....cR......|qc..0!Y.....P.... ..MAIL FROM:<bob@mail.greenmatrix.duckdns.org> BODY=8BITMIME SIZE=495

18:34:33.320855 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [.], ack 92, win 115, length 0
E..(..@.@......|R.....qc....0!Y.P..s.]..
18:34:33.681938 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [P.], seq 334:393, ack 92, win 115, length 59
E..c..@.@......|R.....qc....0!Y.P..s.<..250 2.1.0 <bob@mail.greenmatrix.duckdns.org>... Sender ok

18:34:33.698688 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [P.], seq 92:131, ack 393, win 4312, length 39
E..OBJ@....xR......|qc..0!Y.....P.......RCPT TO:<rob@greenmatrix.duckdns.org>
.[.
18:34:33.698740 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [.], ack 131, win 115, length 0
E..(..@.@......|R.....qc....0!Y.P..s....
18:34:34.080573 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [P.], seq 393:450, ack 131, win 115, length 57
E..a..@.@......|R.....qc....0!Y.P..s.:..250 2.1.5 <rob@greenmatrix.duckdns.org>... Recipient ok

18:34:34.102328 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [P.], seq 131:137, ack 450, win 4297, length 6
E...BN@.....R......|qc..0!Y....(P...b...DATA

18:34:34.102365 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [.], ack 137, win 115, length 0
E..(.   @.@......|R.....qc...(0!Z.P..s....
18:34:34.103108 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [P.], seq 450:500, ack 137, win 115, length 50
E..Z.
@.@......|R.....qc...(0!Z.P..s.3..354 Enter mail, end with "." on a line by itself

18:34:34.108860 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [P.], seq 137:632, ack 500, win 4285, length 495
E...BQ@.....R......|qc..0!Z....ZP....6..To: rob@greenmatrix.duckdns.org
From: Bob <bob@mail.greenmatrix.duckdns.org>
Subject: Test 18:35
Message-ID: <7a575bf9-45ca-fcd3-4161-4044267d5eb9@mail.greenmatrix.duckdns.org>
Date: Wed, 18 Sep 2019 18:34:30 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US

Another test :)


18:34:34.112188 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [P.], seq 632:635, ack 500, win 4285, length 3
E..+BR@.....R......|qc..0![....ZP....8...
...
18:34:34.112332 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [.], ack 635, win 123, length 0
E..(..@.@......|R.....qc...Z0![.P..{....
18:34:34.158491 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [P.], seq 500:556, ack 635, win 123, length 56
E..`..@.@......|R.....qc...Z0![.P..{.9..250 2.0.0 x8IHYXBo006043 Message accepted for delivery

18:34:34.178605 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [P.], seq 635:641, ack 556, win 4271, length 6
E...BU@.....R......|qc..0![.....P...^b..QUIT

18:34:34.178898 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [P.], seq 556:615, ack 641, win 123, length 59
@.@......|R.....qc....0![.P..{.<..221 2.0.0 mail.greenmatrix.duckdns.org closing connection

18:34:34.179165 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [F.], seq 615, ack 641, win 123, length 0
E..(..@.@......|R.....qc....0![.P..{....
18:34:34.198978 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [.], ack 616, win 4256, length 0
E..(BV@.....R......|qc..0![.....P.............
18:34:34.338707 IP cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027 > 192.168.1.124.smtp: Flags [F.], seq 641, ack 616, win 4256, length 0
E..(BZ@.....R......|qc..0![.....P.............
18:34:34.338746 IP 192.168.1.124.smtp > cpc84003-pool15-2-0-cust75.15-1.cable.virginm.net.29027: Flags [.], ack 642, win 123, length 0
E..(..@.@.2....|R.....qc....0![.P..{....
When looking at tcpdump on my office server I see output like this.
Code:
14:49:38.919319 IP 80-20-196-208.xdsl.workserver.net.56504 > shost01.eng.workserver.net.pop3: Flags [P.], seq 7:46, ack 116, win 16444, length 39
E..Ok.@.|...m......D...n........P.@<.m..USER mwsales@mwsupply.co.uk
--
tGogjzCMlgAOVOOOPSvKtOmjsPFUes2zcRTNKyk8Mc98dhWAlxewPLEWABO99pOS2OWz/Ss6DUfI
uZUWJJh02uTjcTxyOc1hKlYzasfZ/gyz03xz5+rRsdjo4DDBfH3XQ5U/KfyrxD4oaz4j8KFIPD8b
2DGVg0hXdiNRtZCCCvPvzWl8DPEGtRXraSqjToheIHCg/cA3MvzY69PpXRfGnWzo2pLf3dubqzvn
Zm8tNxCjsNwC7s+vPpXJ9pGR8L+Fta8T/b5JtqraSytsMvySAE
14:49:38.933261 IP 80-20-196-208.xdsl.workserver.net.56504 > shost01.eng.workserver.net.pop3: Flags [P.], seq 46:65, ack 121, win 16443, length 19
E..;k.@.|...m......D...n........P.@;L...PASS grassyhills2019
^C10373 packets captured
11042 packets received by filter
634 packets dropped by kernel
If anyone knows what I can try to get my test servers output to contain passwords as in my work example that would be great.


Thanks
 
Old 09-22-2019, 12:19 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,259

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
At this stage, the burden of proof is on you to show us what's failing on the problem machine. Seeing as you failed to recreate the problem, why not restore a backup of it to a disk and try with that, wherever they will allow you to do so. I'd also compare versions of programs. I personally dislike the way RH uses ancient versions with backported patches, which always has the potential to throw up some other issue.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu Is Storing Wi-Fi Passwords in Clear Text by Default LXer Syndicated Linux News 0 12-27-2013 07:21 AM
[SOLVED] SSH and clear text passwords mattydee Slackware 12 08-22-2012 10:01 AM
User passwords display in log file in clear text clozarks Linux - Newbie 1 04-21-2010 10:02 PM
LXer: Pidgin stores passwords in clear text!!!! LXer Syndicated Linux News 0 09-27-2009 08:11 PM
Passwords sent in clear text? Synesthesia Linux - Security 4 08-19-2006 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration