SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Joomla! Security 101
      What to do before disaster strikes

http://akeeba.info/security-101
Πέμπτη, 31 Μαρτίου 2011
Hi, I’m
      Nicholas
      Dionysopoulos
      and I bet you can’t
      pronounce my last
      name




http://akeeba.info/me
Πέμπτη, 31 Μαρτίου 2011
The basics
      What we’re supposed to do and rarely do it

Πέμπτη, 31 Μαρτίου 2011
Frequent, tested backups
      Would you jump off a plane without a parachute?




http://akeeba.info/backup
Πέμπτη, 31 Μαρτίου 2011
Update, yesterday
      Yesterday’s code is tomorrow’s hack




http://akeeba.info/basic-security
Πέμπτη, 31 Μαρτίου 2011
Protect your backend
      The login is not enough




Πέμπτη, 31 Μαρτίου 2011
777: The number of the beast
      Permissions are doors; don’t leave them open




http://akeeba.info/777
Πέμπτη, 31 Μαρτίου 2011
Sensible permissions
          Ask your host to enable suPHP or Apache’s mod_itk
          Site root 0755 or 0700
          Directories 0755
          Files 0644
          If you “must” use 0777 (don’t!) protect with .htaccess:
          order deny, allow
          deny from all



Πέμπτη, 31 Μαρτίου 2011
Don’t be a sitting duck
      It’s duck season!

Πέμπτη, 31 Μαρτίου 2011
Mind your prefix
      Nobody wants to be a jos_




http://akeeba.info/prefix
Πέμπτη, 31 Μαρτίου 2011
62 reasons to fire your Super Administrator
      or 42, depending on Joomla! version...




http://akeeba.info/62-reasons
Πέμπτη, 31 Μαρτίου 2011
Security Kung-Fu
      You can’t kill a Ninja

http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
Visual fingerprinting
      Seeing is believing and then some

                                           tm
                                              pl=
                                                  of
                                                    fl
                                                       in
                                                         e

        p =1
    t



                                                         y
                                         mplate= ja_purit
http://akeeba.info/ninja            te
Πέμπτη, 31 Μαρτίου 2011
Visual fingerprinting
         RewriteCond %{QU
                          ERY_STRING} (&|%
                                           3F){1,1}tp=
         [OR]
         RewriteCond %{QU
                          ERY_STRING} (&|%
                                           3F){1,1}
         template= [OR]
         RewriteCond %{QU
                          ERY_STRING} (&|%
                                           3F){1,1}tmpl=
         [NC]
        RewriteRule ^(.*
                         )$ - [R=404,L]




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
PHP has a big mouth
      and that’s not water cooler gossip!




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
PHP has a big mouth




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
PHP has a big mouth




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
PHP has a big mouth
          RewriteCond %{QU
                           ERY_STRING} ^%3F
                                            =PHPE9568F36-
         D428-11d2-A769-0
                          0AA001ACF42 [OR]
         RewriteCond %{QU
                          ERY_STRING} ^%3F
                                           =PHPE9568F34-
         D428-11d2-A769-0
                          0AA001ACF42 [OR]
         RewriteCond %{QU
                          ERY_STRING} ^%3F
                                           =PHPE9568F35-
        D428-11d2-A769-0
                         0AA001ACF42 [OR]
        RewriteCond %{QU
                         ERY_STRING} ^
        %3F=PHPB8B5F2A0-
                         3C92-11d3-A3A9-4
                                          C7B08C10000
        RewriteRule ^(.*
                         )$ - [R=404,L]




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
Blind Elephant
      Meet your supervillain




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
Blind Elephant




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
Blind Elephant
             nicholas@teapot:~/blindelephant$ ./BlindElephant.py mysite.com joomla
             Loaded /home/nicholas/projects/3rdparty/blindelephant/trunk/src/build/lib.linux-x86_64-2.6/blindelephant/
             dbs/joomla.pkl with 33 versions, 3696 differentiating paths, and 122 version groups.
             Starting BlindElephant fingerprint for version of joomla at http://joomla.ubuntu.web

             Hit http://joomla.ubuntu.web/media/system/js/validate.js
             Possible versions based on result: 1.5.17, 1.5.18

             Hit http://joomla.ubuntu.web/includes/js/joomla.javascript.js
             Possible versions based on result: 1.5.17, 1.5.18

             Hit http://joomla.ubuntu.web/media/system/js/caption.js
             Possible versions based on result: 1.5.17, 1.5.18

             Hit http://joomla.ubuntu.web/media/system/js/openid.js
             Possible versions based on result: 1.5.17, 1.5.18

             Hit http://joomla.ubuntu.web/templates/rhuk_milkyway/css/template.css
             Possible versions based on result: 1.5.17, 1.5.18

             Fingerprinting resulted in:
             1.5.17
             1.5.18

             Best Guess: 1.5.18

http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
Blind Elephant

         RewriteRule ^(im
                          ages/stories/*.
                                           (jpe[g,2]?|jpg|
         png|gif|bmp|css|
                          js|swf|htm[l]?))
                                           $ $1 [L]
         RewriteCond %{RE
                          QUEST_FILENAME}
                                           -f
        RewriteCond %{HT
                         TP_REFERER} !^ht
                                          tp[s]{0,1}://(.+
        .)?www.example
                         .com [NC]
        RewriteRule .(j
                         pe[g,2]?|jpg|png
                                          |gif|bmp
        |css|js|swf|htm[
                         l]?)$ - [R=404,L
                                          ]




http://akeeba.info/ninja
Πέμπτη, 31 Μαρτίου 2011
More protection for you
     e!
   re Master                           5 €
  f The                            1
                                        Admin Tools
               .htaccess                Professional
      http://akeeba.info/master-
                                       http://akeeba.info/atpro
               htaccess


                                   use coupon code


                                   JDNL11
Πέμπτη, 31 Μαρτίου 2011
That’s me...
      and this is the perfect
      time to ask me
      questions!




Πέμπτη, 31 Μαρτίου 2011
That’s all folks!
      Want the slides? http://akeeba.info/security-101

Πέμπτη, 31 Μαρτίου 2011

Mais conteúdo relacionado

Destaque

Performance Super-hype Márkaépítés Konferencia
Performance Super-hype Márkaépítés KonferenciaPerformance Super-hype Márkaépítés Konferencia
Performance Super-hype Márkaépítés Konferencia
Carnation Group
 
Sugar creation preso corrected final.ver1
Sugar creation preso corrected final.ver1Sugar creation preso corrected final.ver1
Sugar creation preso corrected final.ver1
Salman Surgit
 
Lab 4 handout 043012
Lab 4 handout 043012Lab 4 handout 043012
Lab 4 handout 043012
Tim Arroyo
 
Slideshare stuff
Slideshare stuffSlideshare stuff
Slideshare stuff
stephen2
 

Destaque (15)

Performance Super-hype Márkaépítés Konferencia
Performance Super-hype Márkaépítés KonferenciaPerformance Super-hype Márkaépítés Konferencia
Performance Super-hype Márkaépítés Konferencia
 
Social Media
Social MediaSocial Media
Social Media
 
AZIMUT Azimut 68S, 2007, 1.200.000 € For Sale Brochure. Presented By azimut-y...
AZIMUT Azimut 68S, 2007, 1.200.000 € For Sale Brochure. Presented By azimut-y...AZIMUT Azimut 68S, 2007, 1.200.000 € For Sale Brochure. Presented By azimut-y...
AZIMUT Azimut 68S, 2007, 1.200.000 € For Sale Brochure. Presented By azimut-y...
 
Encouraging engagement with the provision of emotional competency coaching fo...
Encouraging engagement with the provision of emotional competency coaching fo...Encouraging engagement with the provision of emotional competency coaching fo...
Encouraging engagement with the provision of emotional competency coaching fo...
 
AZIMUT Azimut 46, 1997, 199.000 € For Sale Brochure. Presented By azimut-yach...
AZIMUT Azimut 46, 1997, 199.000 € For Sale Brochure. Presented By azimut-yach...AZIMUT Azimut 46, 1997, 199.000 € For Sale Brochure. Presented By azimut-yach...
AZIMUT Azimut 46, 1997, 199.000 € For Sale Brochure. Presented By azimut-yach...
 
Social Media Advertising: Pacific New Media, June 2016
Social Media Advertising: Pacific New Media, June 2016Social Media Advertising: Pacific New Media, June 2016
Social Media Advertising: Pacific New Media, June 2016
 
What have you learnt about technologies from the process of constructing this...
What have you learnt about technologies from the process of constructing this...What have you learnt about technologies from the process of constructing this...
What have you learnt about technologies from the process of constructing this...
 
Sugar creation preso corrected final.ver1
Sugar creation preso corrected final.ver1Sugar creation preso corrected final.ver1
Sugar creation preso corrected final.ver1
 
SPIC MACAY: Raison d’etre
SPIC MACAY: Raison d’etreSPIC MACAY: Raison d’etre
SPIC MACAY: Raison d’etre
 
Lab 4 handout 043012
Lab 4 handout 043012Lab 4 handout 043012
Lab 4 handout 043012
 
Slideshare stuff
Slideshare stuffSlideshare stuff
Slideshare stuff
 
2011-04-05 Open Textbooks: The College Student Speaks Out (Webinar)
2011-04-05 Open Textbooks: The College Student Speaks Out  (Webinar)2011-04-05 Open Textbooks: The College Student Speaks Out  (Webinar)
2011-04-05 Open Textbooks: The College Student Speaks Out (Webinar)
 
Chad daley 1
Chad daley 1Chad daley 1
Chad daley 1
 
документ камерa Qwizdom
документ камерa Qwizdomдокумент камерa Qwizdom
документ камерa Qwizdom
 
Simt advertisementdistance learning correspondence course bachelor of commerc...
Simt advertisementdistance learning correspondence course bachelor of commerc...Simt advertisementdistance learning correspondence course bachelor of commerc...
Simt advertisementdistance learning correspondence course bachelor of commerc...
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

JD11NL - Joomla! Security 101

  • 1. Joomla! Security 101 What to do before disaster strikes http://akeeba.info/security-101 Πέμπτη, 31 Μαρτίου 2011
  • 2. Hi, I’m Nicholas Dionysopoulos and I bet you can’t pronounce my last name http://akeeba.info/me Πέμπτη, 31 Μαρτίου 2011
  • 3. The basics What we’re supposed to do and rarely do it Πέμπτη, 31 Μαρτίου 2011
  • 4. Frequent, tested backups Would you jump off a plane without a parachute? http://akeeba.info/backup Πέμπτη, 31 Μαρτίου 2011
  • 5. Update, yesterday Yesterday’s code is tomorrow’s hack http://akeeba.info/basic-security Πέμπτη, 31 Μαρτίου 2011
  • 6. Protect your backend The login is not enough Πέμπτη, 31 Μαρτίου 2011
  • 7. 777: The number of the beast Permissions are doors; don’t leave them open http://akeeba.info/777 Πέμπτη, 31 Μαρτίου 2011
  • 8. Sensible permissions Ask your host to enable suPHP or Apache’s mod_itk Site root 0755 or 0700 Directories 0755 Files 0644 If you “must” use 0777 (don’t!) protect with .htaccess: order deny, allow deny from all Πέμπτη, 31 Μαρτίου 2011
  • 9. Don’t be a sitting duck It’s duck season! Πέμπτη, 31 Μαρτίου 2011
  • 10. Mind your prefix Nobody wants to be a jos_ http://akeeba.info/prefix Πέμπτη, 31 Μαρτίου 2011
  • 11. 62 reasons to fire your Super Administrator or 42, depending on Joomla! version... http://akeeba.info/62-reasons Πέμπτη, 31 Μαρτίου 2011
  • 12. Security Kung-Fu You can’t kill a Ninja http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 13. Visual fingerprinting Seeing is believing and then some tm pl= of fl in e p =1 t y mplate= ja_purit http://akeeba.info/ninja te Πέμπτη, 31 Μαρτίου 2011
  • 14. Visual fingerprinting RewriteCond %{QU ERY_STRING} (&|% 3F){1,1}tp= [OR] RewriteCond %{QU ERY_STRING} (&|% 3F){1,1} template= [OR] RewriteCond %{QU ERY_STRING} (&|% 3F){1,1}tmpl= [NC] RewriteRule ^(.* )$ - [R=404,L] http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 15. PHP has a big mouth and that’s not water cooler gossip! http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 16. PHP has a big mouth http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 17. PHP has a big mouth http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 18. PHP has a big mouth RewriteCond %{QU ERY_STRING} ^%3F =PHPE9568F36- D428-11d2-A769-0 0AA001ACF42 [OR] RewriteCond %{QU ERY_STRING} ^%3F =PHPE9568F34- D428-11d2-A769-0 0AA001ACF42 [OR] RewriteCond %{QU ERY_STRING} ^%3F =PHPE9568F35- D428-11d2-A769-0 0AA001ACF42 [OR] RewriteCond %{QU ERY_STRING} ^ %3F=PHPB8B5F2A0- 3C92-11d3-A3A9-4 C7B08C10000 RewriteRule ^(.* )$ - [R=404,L] http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 19. Blind Elephant Meet your supervillain http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 21. Blind Elephant nicholas@teapot:~/blindelephant$ ./BlindElephant.py mysite.com joomla Loaded /home/nicholas/projects/3rdparty/blindelephant/trunk/src/build/lib.linux-x86_64-2.6/blindelephant/ dbs/joomla.pkl with 33 versions, 3696 differentiating paths, and 122 version groups. Starting BlindElephant fingerprint for version of joomla at http://joomla.ubuntu.web Hit http://joomla.ubuntu.web/media/system/js/validate.js Possible versions based on result: 1.5.17, 1.5.18 Hit http://joomla.ubuntu.web/includes/js/joomla.javascript.js Possible versions based on result: 1.5.17, 1.5.18 Hit http://joomla.ubuntu.web/media/system/js/caption.js Possible versions based on result: 1.5.17, 1.5.18 Hit http://joomla.ubuntu.web/media/system/js/openid.js Possible versions based on result: 1.5.17, 1.5.18 Hit http://joomla.ubuntu.web/templates/rhuk_milkyway/css/template.css Possible versions based on result: 1.5.17, 1.5.18 Fingerprinting resulted in: 1.5.17 1.5.18 Best Guess: 1.5.18 http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 22. Blind Elephant RewriteRule ^(im ages/stories/*. (jpe[g,2]?|jpg| png|gif|bmp|css| js|swf|htm[l]?)) $ $1 [L] RewriteCond %{RE QUEST_FILENAME} -f RewriteCond %{HT TP_REFERER} !^ht tp[s]{0,1}://(.+ .)?www.example .com [NC] RewriteRule .(j pe[g,2]?|jpg|png |gif|bmp |css|js|swf|htm[ l]?)$ - [R=404,L ] http://akeeba.info/ninja Πέμπτη, 31 Μαρτίου 2011
  • 23. More protection for you e! re Master 5 € f The 1 Admin Tools .htaccess Professional http://akeeba.info/master- http://akeeba.info/atpro htaccess use coupon code JDNL11 Πέμπτη, 31 Μαρτίου 2011
  • 24. That’s me... and this is the perfect time to ask me questions! Πέμπτη, 31 Μαρτίου 2011
  • 25. That’s all folks! Want the slides? http://akeeba.info/security-101 Πέμπτη, 31 Μαρτίου 2011