SlideShare une entreprise Scribd logo
1  sur  28
XMPP, algo más que chat

        Luis Delgado
         @ldelgadoj
Índice
1. Introducción
2. Estructura
3. Seguridad
4. Tuenti
5. Google
6. Conclusiones

                           2
Introducción
• 1998: Jeremie Miller -> Jabber
• 2000: Envío de draft al GD IETF -> IMPP
  -> Expira sin contribuciones
• 2002: Segundo intento -> IETF -> XMPP
• 2004: Se establecen 4 RFC’s (core, …)


                                            3
Estructura
• Conexiones TCP de larga duración
  -> BOSH (HTTP-Bind) -> Connection Manager
• Intercambio asíncrono de información (id)
• XML Stream
• XML Stanza


                                              4
XML Stanza - Message
• Uso: enviar mensajes de una entidad a otra
• Tipos: normal, chat, groupchat, headline, error

  <message to='x2@domain.com' type='chat' xml:lang='es'>
     <subject>SUBJECT</subject>
     <body>BODY</body>
  </message>




                                                           5
XML Stanza - Presence
• Forma básica de broadcast entre una entidad
  y todos sus subscriptores
• Se puede enviar a un único usuario con el
  atributo TO

        <presence to='x2@domain.com' type='suscribe'/>

        <presence to='x1@domain.com' type='suscribed'/>



                                                          6
XML Stanza - IQ
• Uso: pedir información a otra entidad/servidor
• Tipos: get, set, result, error
• Extensiones en XMPP

  <iq type=’get’>                        <iq from=’x1@domain.com’
     <query xmlns=’jabber:iq:roster’/>      to ‘x1@domain.com’
  </iq>                                     type=’set’>
                                            <query xmlns=’jabber:iq:roster’>
                                               <item jid=’x2@domain.com’/>
                                            </query>
                                         </iq>

                                                                               7
Seguridad
• Pilar importante del protocolo (&Privacidad)
• Pocas vulnerabilidades conocidas (1999+)
• ¿A qué nos enfrentamos?
  -> rogue servers, address spoofing, DoS, spam,
  phising, leaks, logging, code issues…
• Veamoslo más en detalle


                                                 8
Seguridad (II)
• Comunicación cifrada (TLS - SSL)
  client<->server & server<->server
  end-to-end encryption (PGP)
• Autenticación e identidad
  parámetro ‘from’
  verificación del dominio (dialback)
  set de caracteres unicode (a<->a)

                                        9
Seguridad (III)
• Spam
  sistema de subscripción (presences)
  $$ -> no es rentable
  limite envíos/tiempo (cuentas+ -> captcha)
• Al final…
  -> Implementación del protocolo (auth, tls)
  -> Configuración de los servidores (presence)

                                                  10
11
Tuenti - Chat
• Cadena de conexión
  -> Mismo SID que Web/API -> ¿httponly?
  -> Permite elegir el recurso
• Configuración aplicación android
  -> Libería SMACK -> accept-all


                                           12
Tuenti - Tu




Tráfico en la red social gratuito
-> Tunelización a través de XMPP
                                    14
Tuenti - Tu (II)
¿Es realmente interesante? -> Algunas cifras




                                               15
Tuenti – Tu (III)
• Otras opciones ya conocidas:
  -> FaceCat (Facebook NetCat)
  -> Google Spreadsheet (IMPORTDATA)
  -> Facebook (Debug->Echo->URL)
  -> (…)



                                       16
Google Talk
• Tres vectores de ataque
  -> Dispositivos android
  -> Formato móvil
  -> Aplicación de escritorio
• ¿A qué nos enfrentamos?



                                17
Google Talk (II)
• Cadena de conexión vulnerable
  -> ¿One-Time Token? -> Timeout
  -> PLAIN mechanism
  -> TLS required -> ¿really?
• Extensiones XMPP
  -> Contactos
  -> Feed emails
• Añadir un contacto -> ¿añade a contactos?
                                              18
Google Talk (II)
• Cadena de conexión vulnerable
  -> ¿One-Time Token? -> Timeout
  -> PLAIN mechanism
  -> TLS required -> ¿really?
• Extensiones XMPP
  -> Contactos
  -> Feed emails
• Añadir un contacto -> ¿añade a contactos?
                                              20
Google Talk (II)
• Cadena de conexión vulnerable
  -> ¿One-Time Token? -> Timeout
  -> PLAIN mechanism
  -> TLS required -> ¿really?
• Extensiones XMPP
  -> Contactos
  -> Feed emails
• Añadir un contacto -> ¿añade a contactos?
                                              22
Google Talk (II)
• Cadena de conexión vulnerable
  -> ¿One-Time Token? -> Timeout
  -> PLAIN mechanism
  -> TLS required -> ¿really?
• Extensiones XMPP
  -> Contactos
  -> Feed emails
• Añadir un contacto -> ¿añade a contactos?
                                              24
Google Talk (III)
• Aplicación GtalkGateway
  -> Demo
• Actualización… ¿vulnerable?
• Muchos más servicios




                                25
27
¿Preguntas?


              28

Contenu connexe

En vedette

EOC Valle de Aburrá Marzo 2016
EOC Valle de Aburrá Marzo 2016EOC Valle de Aburrá Marzo 2016
EOC Valle de Aburrá Marzo 2016Fenalco Antioquia
 
2016 - Pictures of the month_MARCH - Mar_09 - Mar_ 15
2016 - Pictures of the month_MARCH - Mar_09 - Mar_ 152016 - Pictures of the month_MARCH - Mar_09 - Mar_ 15
2016 - Pictures of the month_MARCH - Mar_09 - Mar_ 15vinhbinh2010
 
An Incredible Journey
An Incredible JourneyAn Incredible Journey
An Incredible JourneySteve Elliot
 
Brebeuf Inclusive Classroom Practices
Brebeuf Inclusive Classroom PracticesBrebeuf Inclusive Classroom Practices
Brebeuf Inclusive Classroom PracticesRosetta Eun Ryong Lee
 
Deber de lexema
Deber de lexemaDeber de lexema
Deber de lexemaraidenzr
 
Meridian Teaching with Identity in Mind
Meridian Teaching with Identity in MindMeridian Teaching with Identity in Mind
Meridian Teaching with Identity in MindRosetta Eun Ryong Lee
 
ISACS Division Heads Conference Cross Cultural Communication
ISACS Division Heads Conference Cross Cultural CommunicationISACS Division Heads Conference Cross Cultural Communication
ISACS Division Heads Conference Cross Cultural CommunicationRosetta Eun Ryong Lee
 
INFORME TEST DE AUTOEVALUACIÓN
INFORME TEST DE AUTOEVALUACIÓNINFORME TEST DE AUTOEVALUACIÓN
INFORME TEST DE AUTOEVALUACIÓNLsanchez00
 
Гвоздецька Наталія Iot лабараторія
Гвоздецька Наталія Iot лабараторіяГвоздецька Наталія Iot лабараторія
Гвоздецька Наталія Iot лабараторіяGURT Resource Centre
 
Top 20 Quotes About Project Management
Top 20 Quotes About Project ManagementTop 20 Quotes About Project Management
Top 20 Quotes About Project ManagementRachel Burger
 
Effect of humor on project management
Effect of humor on project managementEffect of humor on project management
Effect of humor on project managementMarco Sampietro
 
Kpn rotterdam future of IOT and electric autonomous driving 2011 2030
Kpn rotterdam future of IOT and electric autonomous driving 2011 2030Kpn rotterdam future of IOT and electric autonomous driving 2011 2030
Kpn rotterdam future of IOT and electric autonomous driving 2011 2030Vincent Everts
 
FAO/INFOODS Global Food Composition Database for Pulses
FAO/INFOODS Global Food Composition Database for PulsesFAO/INFOODS Global Food Composition Database for Pulses
FAO/INFOODS Global Food Composition Database for PulsesFAO
 

En vedette (18)

EOC Valle de Aburrá Marzo 2016
EOC Valle de Aburrá Marzo 2016EOC Valle de Aburrá Marzo 2016
EOC Valle de Aburrá Marzo 2016
 
OES Navigating Ouch Moments
OES Navigating Ouch MomentsOES Navigating Ouch Moments
OES Navigating Ouch Moments
 
2016 - Pictures of the month_MARCH - Mar_09 - Mar_ 15
2016 - Pictures of the month_MARCH - Mar_09 - Mar_ 152016 - Pictures of the month_MARCH - Mar_09 - Mar_ 15
2016 - Pictures of the month_MARCH - Mar_09 - Mar_ 15
 
An Incredible Journey
An Incredible JourneyAn Incredible Journey
An Incredible Journey
 
Brebeuf Inclusive Classroom Practices
Brebeuf Inclusive Classroom PracticesBrebeuf Inclusive Classroom Practices
Brebeuf Inclusive Classroom Practices
 
Deber de lexema
Deber de lexemaDeber de lexema
Deber de lexema
 
Prolisok berdyansk
Prolisok berdyanskProlisok berdyansk
Prolisok berdyansk
 
OES Asian Pacific America
OES Asian Pacific AmericaOES Asian Pacific America
OES Asian Pacific America
 
Meridian Teaching with Identity in Mind
Meridian Teaching with Identity in MindMeridian Teaching with Identity in Mind
Meridian Teaching with Identity in Mind
 
ISACS Division Heads Conference Cross Cultural Communication
ISACS Division Heads Conference Cross Cultural CommunicationISACS Division Heads Conference Cross Cultural Communication
ISACS Division Heads Conference Cross Cultural Communication
 
INFORME TEST DE AUTOEVALUACIÓN
INFORME TEST DE AUTOEVALUACIÓNINFORME TEST DE AUTOEVALUACIÓN
INFORME TEST DE AUTOEVALUACIÓN
 
Гвоздецька Наталія Iot лабараторія
Гвоздецька Наталія Iot лабараторіяГвоздецька Наталія Iot лабараторія
Гвоздецька Наталія Iot лабараторія
 
Top 20 Quotes About Project Management
Top 20 Quotes About Project ManagementTop 20 Quotes About Project Management
Top 20 Quotes About Project Management
 
Effect of humor on project management
Effect of humor on project managementEffect of humor on project management
Effect of humor on project management
 
Refarming 4 g
Refarming 4 gRefarming 4 g
Refarming 4 g
 
Software defined network
Software defined networkSoftware defined network
Software defined network
 
Kpn rotterdam future of IOT and electric autonomous driving 2011 2030
Kpn rotterdam future of IOT and electric autonomous driving 2011 2030Kpn rotterdam future of IOT and electric autonomous driving 2011 2030
Kpn rotterdam future of IOT and electric autonomous driving 2011 2030
 
FAO/INFOODS Global Food Composition Database for Pulses
FAO/INFOODS Global Food Composition Database for PulsesFAO/INFOODS Global Food Composition Database for Pulses
FAO/INFOODS Global Food Composition Database for Pulses
 

Similaire à Luis Delgado - XMPP, algo más que chat [RootedCON 2012]

Seguridad en VoIP
Seguridad en VoIPSeguridad en VoIP
Seguridad en VoIPIrontec
 
Clase 03 Protocolos Y Servicios De Red
Clase 03   Protocolos Y Servicios De RedClase 03   Protocolos Y Servicios De Red
Clase 03 Protocolos Y Servicios De RedJaime Valenzuela
 
VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...
VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...
VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...Internet Security Auditors
 
Rooted con 2015 - Rojos y Azules: dos equipos con dos sabores
Rooted con 2015 - Rojos y Azules: dos equipos con dos saboresRooted con 2015 - Rojos y Azules: dos equipos con dos sabores
Rooted con 2015 - Rojos y Azules: dos equipos con dos saboresAlejandro Ramos
 
Herramientas administrativas en diferentes sistemas operativos
Herramientas administrativas en diferentes sistemas operativosHerramientas administrativas en diferentes sistemas operativos
Herramientas administrativas en diferentes sistemas operativosSantiago NA
 
XIV Jornadas CCN Cert: Covert Channels en operaciones de Red Team
XIV Jornadas CCN Cert: Covert Channels en operaciones de Red TeamXIV Jornadas CCN Cert: Covert Channels en operaciones de Red Team
XIV Jornadas CCN Cert: Covert Channels en operaciones de Red TeamDani Adastra
 
Gerardo Garcia Peña - Crypto Goofs... [rooted2018]
Gerardo Garcia Peña - Crypto Goofs... [rooted2018]Gerardo Garcia Peña - Crypto Goofs... [rooted2018]
Gerardo Garcia Peña - Crypto Goofs... [rooted2018]RootedCON
 
Análisis de estructura y funcionamiento de las redes de ordenadores compromet...
Análisis de estructura y funcionamiento de las redes de ordenadores compromet...Análisis de estructura y funcionamiento de las redes de ordenadores compromet...
Análisis de estructura y funcionamiento de las redes de ordenadores compromet...Adrian Belmonte Martín
 
Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]
Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]
Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]RootedCON
 
Negocios en internet_clase_1_Ricardo_Infraestructura
Negocios en internet_clase_1_Ricardo_InfraestructuraNegocios en internet_clase_1_Ricardo_Infraestructura
Negocios en internet_clase_1_Ricardo_Infraestructuraclubdemarketing2
 

Similaire à Luis Delgado - XMPP, algo más que chat [RootedCON 2012] (20)

Social Erlang
Social ErlangSocial Erlang
Social Erlang
 
Seguridad en VoIP
Seguridad en VoIPSeguridad en VoIP
Seguridad en VoIP
 
Clase 03 Protocolos Y Servicios De Red
Clase 03   Protocolos Y Servicios De RedClase 03   Protocolos Y Servicios De Red
Clase 03 Protocolos Y Servicios De Red
 
Presentacion scraping
Presentacion scrapingPresentacion scraping
Presentacion scraping
 
VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...
VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...
VI Foro Evidencias Electrónicas en la Investigación Policial. Análisis forens...
 
Rooted con 2015 - Rojos y Azules: dos equipos con dos sabores
Rooted con 2015 - Rojos y Azules: dos equipos con dos saboresRooted con 2015 - Rojos y Azules: dos equipos con dos sabores
Rooted con 2015 - Rojos y Azules: dos equipos con dos sabores
 
Anonimato en Internet
Anonimato en InternetAnonimato en Internet
Anonimato en Internet
 
Herramientas administrativas en diferentes sistemas operativos
Herramientas administrativas en diferentes sistemas operativosHerramientas administrativas en diferentes sistemas operativos
Herramientas administrativas en diferentes sistemas operativos
 
Intranet por Monono
Intranet por MononoIntranet por Monono
Intranet por Monono
 
ASR_Tema_1.pdf
ASR_Tema_1.pdfASR_Tema_1.pdf
ASR_Tema_1.pdf
 
En 20 minutos... Buenas Practicas SSL
En 20 minutos... Buenas Practicas SSLEn 20 minutos... Buenas Practicas SSL
En 20 minutos... Buenas Practicas SSL
 
XIV Jornadas CCN Cert: Covert Channels en operaciones de Red Team
XIV Jornadas CCN Cert: Covert Channels en operaciones de Red TeamXIV Jornadas CCN Cert: Covert Channels en operaciones de Red Team
XIV Jornadas CCN Cert: Covert Channels en operaciones de Red Team
 
The holy grail
The holy grailThe holy grail
The holy grail
 
Gerardo Garcia Peña - Crypto Goofs... [rooted2018]
Gerardo Garcia Peña - Crypto Goofs... [rooted2018]Gerardo Garcia Peña - Crypto Goofs... [rooted2018]
Gerardo Garcia Peña - Crypto Goofs... [rooted2018]
 
Internet
InternetInternet
Internet
 
Análisis de estructura y funcionamiento de las redes de ordenadores compromet...
Análisis de estructura y funcionamiento de las redes de ordenadores compromet...Análisis de estructura y funcionamiento de las redes de ordenadores compromet...
Análisis de estructura y funcionamiento de las redes de ordenadores compromet...
 
Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]
Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]
Leonardo Nve - Explotando cambios en servidores DNS [RootedSatellite Valencia]
 
DoS En La Ciberguerra
DoS En La CiberguerraDoS En La Ciberguerra
DoS En La Ciberguerra
 
Internet
InternetInternet
Internet
 
Negocios en internet_clase_1_Ricardo_Infraestructura
Negocios en internet_clase_1_Ricardo_InfraestructuraNegocios en internet_clase_1_Ricardo_Infraestructura
Negocios en internet_clase_1_Ricardo_Infraestructura
 

Plus de RootedCON

Rooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro Villaverde
Rooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro VillaverdeRooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro Villaverde
Rooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro VillaverdeRootedCON
 
rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...
rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...
rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...RootedCON
 
Rooted2020 hunting malware-using_process_behavior-roberto_amado
Rooted2020 hunting malware-using_process_behavior-roberto_amadoRooted2020 hunting malware-using_process_behavior-roberto_amado
Rooted2020 hunting malware-using_process_behavior-roberto_amadoRootedCON
 
Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_
Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_
Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_RootedCON
 
Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...
Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...
Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...RootedCON
 
Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...
Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...
Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...RootedCON
 
Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...
Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...
Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...RootedCON
 
Rooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguer
Rooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguerRooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguer
Rooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguerRootedCON
 
rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...
rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...
rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...RootedCON
 
Rooted2020 stefano maccaglia--_the_enemy_of_my_enemy
Rooted2020 stefano maccaglia--_the_enemy_of_my_enemyRooted2020 stefano maccaglia--_the_enemy_of_my_enemy
Rooted2020 stefano maccaglia--_the_enemy_of_my_enemyRootedCON
 
Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...
Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...
Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...RootedCON
 
Rooted2020 virtual pwned-network_-_manel_molina
Rooted2020 virtual pwned-network_-_manel_molinaRooted2020 virtual pwned-network_-_manel_molina
Rooted2020 virtual pwned-network_-_manel_molinaRootedCON
 
Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...
Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...
Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...RootedCON
 
Rooted2020 todo a-siem_-_marta_lopez
Rooted2020 todo a-siem_-_marta_lopezRooted2020 todo a-siem_-_marta_lopez
Rooted2020 todo a-siem_-_marta_lopezRootedCON
 
Rooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valero
Rooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valeroRooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valero
Rooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valeroRootedCON
 
Rooted2020 live coding--_jesus_jara
Rooted2020 live coding--_jesus_jaraRooted2020 live coding--_jesus_jara
Rooted2020 live coding--_jesus_jaraRootedCON
 
Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...
Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...
Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...RootedCON
 
Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...
Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...
Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...RootedCON
 
Rooted2020 evading deep-learning_malware_detectors_-_javier_yuste
Rooted2020 evading deep-learning_malware_detectors_-_javier_yusteRooted2020 evading deep-learning_malware_detectors_-_javier_yuste
Rooted2020 evading deep-learning_malware_detectors_-_javier_yusteRootedCON
 
Rooted2020 encontrando 0days-en_2020_-_antonio_morales
Rooted2020 encontrando 0days-en_2020_-_antonio_moralesRooted2020 encontrando 0days-en_2020_-_antonio_morales
Rooted2020 encontrando 0days-en_2020_-_antonio_moralesRootedCON
 

Plus de RootedCON (20)

Rooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro Villaverde
Rooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro VillaverdeRooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro Villaverde
Rooted2020 A clockwork pentester - Jose Carlos Moral & Alvaro Villaverde
 
rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...
rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...
rooted2020 Sandbox fingerprinting -_evadiendo_entornos_de_analisis_-_victor_c...
 
Rooted2020 hunting malware-using_process_behavior-roberto_amado
Rooted2020 hunting malware-using_process_behavior-roberto_amadoRooted2020 hunting malware-using_process_behavior-roberto_amado
Rooted2020 hunting malware-using_process_behavior-roberto_amado
 
Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_
Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_
Rooted2020 compliance as-code_-_guillermo_obispo_-_jose_mariaperez_-_
 
Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...
Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...
Rooted2020 the day i_ruled_the_world_deceiving_software_developers_through_op...
 
Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...
Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...
Rooted2020 si la-empresa_ha_ocultado_el_ciberataque,_como_se_ha_enterado_el_r...
 
Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...
Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...
Rooted2020 wordpress-another_terror_story_-_manuel_garcia_-_jacinto_sergio_ca...
 
Rooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguer
Rooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguerRooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguer
Rooted2020 Atacando comunicaciones-de_voz_cifradas_-_jose_luis_verdeguer
 
rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...
rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...
rooted2020-Rootkit necurs no_es_un_bug,_es_una_feature_-_roberto_santos_-_jav...
 
Rooted2020 stefano maccaglia--_the_enemy_of_my_enemy
Rooted2020 stefano maccaglia--_the_enemy_of_my_enemyRooted2020 stefano maccaglia--_the_enemy_of_my_enemy
Rooted2020 stefano maccaglia--_the_enemy_of_my_enemy
 
Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...
Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...
Rooted2020 taller de-reversing_de_binarios_escritos_en_golang_-_mariano_palom...
 
Rooted2020 virtual pwned-network_-_manel_molina
Rooted2020 virtual pwned-network_-_manel_molinaRooted2020 virtual pwned-network_-_manel_molina
Rooted2020 virtual pwned-network_-_manel_molina
 
Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...
Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...
Rooted2020 van a-mear_sangre_como_hacer_que_los_malos_lo_paguen_muy_caro_-_an...
 
Rooted2020 todo a-siem_-_marta_lopez
Rooted2020 todo a-siem_-_marta_lopezRooted2020 todo a-siem_-_marta_lopez
Rooted2020 todo a-siem_-_marta_lopez
 
Rooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valero
Rooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valeroRooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valero
Rooted2020 roapt evil-mass_storage_-_tu-ya_aqui_-_david_reguera_-_abel_valero
 
Rooted2020 live coding--_jesus_jara
Rooted2020 live coding--_jesus_jaraRooted2020 live coding--_jesus_jara
Rooted2020 live coding--_jesus_jara
 
Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...
Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...
Rooted2020 legalidad de-la_prueba_tecnologica_indiciaria_cuando_tu_papi_es_un...
 
Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...
Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...
Rooted2020 hackeando el-mundo_exterior_a_traves_de_bluetooth_low-energy_ble_-...
 
Rooted2020 evading deep-learning_malware_detectors_-_javier_yuste
Rooted2020 evading deep-learning_malware_detectors_-_javier_yusteRooted2020 evading deep-learning_malware_detectors_-_javier_yuste
Rooted2020 evading deep-learning_malware_detectors_-_javier_yuste
 
Rooted2020 encontrando 0days-en_2020_-_antonio_morales
Rooted2020 encontrando 0days-en_2020_-_antonio_moralesRooted2020 encontrando 0days-en_2020_-_antonio_morales
Rooted2020 encontrando 0days-en_2020_-_antonio_morales
 

Luis Delgado - XMPP, algo más que chat [RootedCON 2012]

  • 1. XMPP, algo más que chat Luis Delgado @ldelgadoj
  • 2. Índice 1. Introducción 2. Estructura 3. Seguridad 4. Tuenti 5. Google 6. Conclusiones 2
  • 3. Introducción • 1998: Jeremie Miller -> Jabber • 2000: Envío de draft al GD IETF -> IMPP -> Expira sin contribuciones • 2002: Segundo intento -> IETF -> XMPP • 2004: Se establecen 4 RFC’s (core, …) 3
  • 4. Estructura • Conexiones TCP de larga duración -> BOSH (HTTP-Bind) -> Connection Manager • Intercambio asíncrono de información (id) • XML Stream • XML Stanza 4
  • 5. XML Stanza - Message • Uso: enviar mensajes de una entidad a otra • Tipos: normal, chat, groupchat, headline, error <message to='x2@domain.com' type='chat' xml:lang='es'> <subject>SUBJECT</subject> <body>BODY</body> </message> 5
  • 6. XML Stanza - Presence • Forma básica de broadcast entre una entidad y todos sus subscriptores • Se puede enviar a un único usuario con el atributo TO <presence to='x2@domain.com' type='suscribe'/> <presence to='x1@domain.com' type='suscribed'/> 6
  • 7. XML Stanza - IQ • Uso: pedir información a otra entidad/servidor • Tipos: get, set, result, error • Extensiones en XMPP <iq type=’get’> <iq from=’x1@domain.com’ <query xmlns=’jabber:iq:roster’/> to ‘x1@domain.com’ </iq> type=’set’> <query xmlns=’jabber:iq:roster’> <item jid=’x2@domain.com’/> </query> </iq> 7
  • 8. Seguridad • Pilar importante del protocolo (&Privacidad) • Pocas vulnerabilidades conocidas (1999+) • ¿A qué nos enfrentamos? -> rogue servers, address spoofing, DoS, spam, phising, leaks, logging, code issues… • Veamoslo más en detalle 8
  • 9. Seguridad (II) • Comunicación cifrada (TLS - SSL) client<->server & server<->server end-to-end encryption (PGP) • Autenticación e identidad parámetro ‘from’ verificación del dominio (dialback) set de caracteres unicode (a<->a) 9
  • 10. Seguridad (III) • Spam sistema de subscripción (presences) $$ -> no es rentable limite envíos/tiempo (cuentas+ -> captcha) • Al final… -> Implementación del protocolo (auth, tls) -> Configuración de los servidores (presence) 10
  • 11. 11
  • 12. Tuenti - Chat • Cadena de conexión -> Mismo SID que Web/API -> ¿httponly? -> Permite elegir el recurso • Configuración aplicación android -> Libería SMACK -> accept-all 12
  • 13.
  • 14. Tuenti - Tu Tráfico en la red social gratuito -> Tunelización a través de XMPP 14
  • 15. Tuenti - Tu (II) ¿Es realmente interesante? -> Algunas cifras 15
  • 16. Tuenti – Tu (III) • Otras opciones ya conocidas: -> FaceCat (Facebook NetCat) -> Google Spreadsheet (IMPORTDATA) -> Facebook (Debug->Echo->URL) -> (…) 16
  • 17. Google Talk • Tres vectores de ataque -> Dispositivos android -> Formato móvil -> Aplicación de escritorio • ¿A qué nos enfrentamos? 17
  • 18. Google Talk (II) • Cadena de conexión vulnerable -> ¿One-Time Token? -> Timeout -> PLAIN mechanism -> TLS required -> ¿really? • Extensiones XMPP -> Contactos -> Feed emails • Añadir un contacto -> ¿añade a contactos? 18
  • 19.
  • 20. Google Talk (II) • Cadena de conexión vulnerable -> ¿One-Time Token? -> Timeout -> PLAIN mechanism -> TLS required -> ¿really? • Extensiones XMPP -> Contactos -> Feed emails • Añadir un contacto -> ¿añade a contactos? 20
  • 21.
  • 22. Google Talk (II) • Cadena de conexión vulnerable -> ¿One-Time Token? -> Timeout -> PLAIN mechanism -> TLS required -> ¿really? • Extensiones XMPP -> Contactos -> Feed emails • Añadir un contacto -> ¿añade a contactos? 22
  • 23.
  • 24. Google Talk (II) • Cadena de conexión vulnerable -> ¿One-Time Token? -> Timeout -> PLAIN mechanism -> TLS required -> ¿really? • Extensiones XMPP -> Contactos -> Feed emails • Añadir un contacto -> ¿añade a contactos? 24
  • 25. Google Talk (III) • Aplicación GtalkGateway -> Demo • Actualización… ¿vulnerable? • Muchos más servicios 25
  • 26.
  • 27. 27