SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
Securing your Movable Type
✓
✓
✓
✓

    How many have you done ?
Securing
your admin screen


                    Public site




                    Admin CGI
Separate directories for CGI and contents

         http://example.com


/cgi-bin/*.cgi          /mt-static/
                            /*.html


 Execute all files          Prohibit CGI
Restrict accesses

   Conceal CGI inside the DMZ, or restrict access by IP
                                             addresses



/cgi-bin/*



more info on http://httpd.apache.org/docs/2.2/en/mod/mod_authz_host.html
Rename mt.cgi script
       Prevent a bot access and a random guessing

https://example.com/cgi-bin/mt/mt.cgi




 AdminScript XXXX.cgi
                     Specify as a configuration directive
                                       in mt-config.cgi
Protect mt.cgi by the basic authentication

  Allow access to mt-comments.cgi or mt-cp.cgi, but deny
                                        access to mt.cgi




/cgi-bin/mt.cgi
httpd.conf
<Directory "/home/example/www">
    etc....
                                        .htaccess
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /path/to/.htpasswd
    <Files mt.cgi>
     Require valid-user
    </Files>
</Directory>

  http://httpd.apache.org/docs/2.2/en/howto/auth.html
You must use a different ID /
Password for the basic
authentication from your MT account

SSL is mandatory otherwise the
ID / Password can be captured
during the network transaction
Use SSL for the admin access
Encrypt the transaction between your browser and MT


   SSL
     SSL
Required configure in mt-config.cgi


                           Use relative path


StaticWebPath                   /mt-static

Not to mix http and https connections when fetching
       images and CSS in the admin screen.
Configure URL for admin / and non admin CGI


AdminCGIPath                Path for the admin CGI (SSL)


   https://example.com/cgi-bin/mt/
CGIPath                 Path for the non-admin CGI


    http://example.com/cgi-bin/mt/

 But this is NOT enough to prohibit the non-SSL
            access to the admin script
1. Show Forbidden for non-SSL access

                               httpd.conf
<Directory "/home/example/www">
    etc....

    AuthType Basic             .htaccess
    AuthName "Restricted Files"
    AuthUserFile /path/to/passwords
    <Files mt.cgi>
     Require valid-user
     SSLRequireSSL
    </Files>
</Directory>
2. Redirect http access to https

                               httpd.conf
<Directory "/home/example/www">
    etc....
                                     .htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(cgi-bin/mt.cgi)$
    https://%{SERVER_NAME}/$1 [R,L]

                       in one line


</Directory>
SSL cert is not expensive today

  e.g. RapidSSL GeoTrust, Inc)
        Go Daddy SSL are
       $20 - 40 / a year
Restrict file uploads


   AssetFileExtensions
DeniedAssetFileExtensions


            Introduced in
   MT 4.291 / 4.361 / 5.051 / 5.11
AssetFileExtensions
"gif,jpe?g,png,bmp,tiff?,mp3,ogg,aiff,wav,wma,
aac, flac,m4a,mov, avi,3gp,asf,mp4,qt,wmv,
asx,mpg,flv,mkv,ogm"




 Specify file extensions to permit
DeniedAssetFileExtensions
"ascx,asis,asp,aspx,bat,cfc,cfm,cgi,cmd,com,cpl,dll,
exe,htaccess,htm,html,inc,jhtml,js,jsb,jsp,mht,mhtml
,msi,php,php2,php3,php4,php5,phps,phtm,phtml,pif
,pl,pwml,py,reg,scr,sh,shtm,shtml,vbs,vxd"




Specify file extensions to prohibit
✓
✓
✓
✓

    How many have you done ?

Mais conteúdo relacionado

Mais procurados

Secure Mashups
Secure MashupsSecure Mashups
Secure Mashups
kriszyp
 
Browser Wars 2019 - Implementing a Content Security Policy
Browser Wars 2019 - Implementing a Content Security PolicyBrowser Wars 2019 - Implementing a Content Security Policy
Browser Wars 2019 - Implementing a Content Security Policy
George Boobyer
 
Node.JS and WebSockets with Faye
Node.JS and WebSockets with FayeNode.JS and WebSockets with Faye
Node.JS and WebSockets with Faye
Matjaž Lipuš
 
Web security at Meteor (Pivotal Labs)
Web security at Meteor (Pivotal Labs)Web security at Meteor (Pivotal Labs)
Web security at Meteor (Pivotal Labs)
Emily Stark
 
Http
HttpHttp
Http
NEATS
 

Mais procurados (20)

BsidesDelhi 2018: DomGoat - the DOM Security Playground
BsidesDelhi 2018: DomGoat - the DOM Security PlaygroundBsidesDelhi 2018: DomGoat - the DOM Security Playground
BsidesDelhi 2018: DomGoat - the DOM Security Playground
 
Scout xss csrf_security_presentation_chicago
Scout xss csrf_security_presentation_chicagoScout xss csrf_security_presentation_chicago
Scout xss csrf_security_presentation_chicago
 
Http security response headers
Http security response headers Http security response headers
Http security response headers
 
Secure Mashups
Secure MashupsSecure Mashups
Secure Mashups
 
Taming 3rd party content
Taming 3rd party contentTaming 3rd party content
Taming 3rd party content
 
Péhápkaři v Pecce: Jak na bezpečnostní hlavičky – Marek Humpolík – 23. 1. 2019
Péhápkaři v Pecce: Jak na bezpečnostní hlavičky – Marek Humpolík – 23. 1. 2019Péhápkaři v Pecce: Jak na bezpečnostní hlavičky – Marek Humpolík – 23. 1. 2019
Péhápkaři v Pecce: Jak na bezpečnostní hlavičky – Marek Humpolík – 23. 1. 2019
 
DiscoJuice
DiscoJuiceDiscoJuice
DiscoJuice
 
Content Security Policy
Content Security PolicyContent Security Policy
Content Security Policy
 
Browser Wars 2019 - Implementing a Content Security Policy
Browser Wars 2019 - Implementing a Content Security PolicyBrowser Wars 2019 - Implementing a Content Security Policy
Browser Wars 2019 - Implementing a Content Security Policy
 
AtlasCamp 2014: Writing Connect Add-ons for Confluence
AtlasCamp 2014: Writing Connect Add-ons for ConfluenceAtlasCamp 2014: Writing Connect Add-ons for Confluence
AtlasCamp 2014: Writing Connect Add-ons for Confluence
 
Session1-Introduce Http-HTTP Security headers
Session1-Introduce Http-HTTP Security headers Session1-Introduce Http-HTTP Security headers
Session1-Introduce Http-HTTP Security headers
 
Xss what the heck-!
Xss   what the heck-!Xss   what the heck-!
Xss what the heck-!
 
Introduction to Web security
Introduction to Web securityIntroduction to Web security
Introduction to Web security
 
Defeating Cross-Site Scripting with Content Security Policy (updated)
Defeating Cross-Site Scripting with Content Security Policy (updated)Defeating Cross-Site Scripting with Content Security Policy (updated)
Defeating Cross-Site Scripting with Content Security Policy (updated)
 
Web vulnerabilities
Web vulnerabilitiesWeb vulnerabilities
Web vulnerabilities
 
Meteor Meets Mallory
Meteor Meets MalloryMeteor Meets Mallory
Meteor Meets Mallory
 
Node.JS and WebSockets with Faye
Node.JS and WebSockets with FayeNode.JS and WebSockets with Faye
Node.JS and WebSockets with Faye
 
[SoftServe IT Academy] - JavaScript Storages
[SoftServe IT Academy] - JavaScript Storages[SoftServe IT Academy] - JavaScript Storages
[SoftServe IT Academy] - JavaScript Storages
 
Web security at Meteor (Pivotal Labs)
Web security at Meteor (Pivotal Labs)Web security at Meteor (Pivotal Labs)
Web security at Meteor (Pivotal Labs)
 
Http
HttpHttp
Http
 

Destaque

Destaque (8)

Movable Type 5 セミナー
Movable Type 5 セミナーMovable Type 5 セミナー
Movable Type 5 セミナー
 
Six Apart Media Day: 基調講演「日米ソーシャルメディア最新事情」
Six Apart Media Day: 基調講演「日米ソーシャルメディア最新事情」Six Apart Media Day: 基調講演「日米ソーシャルメディア最新事情」
Six Apart Media Day: 基調講演「日米ソーシャルメディア最新事情」
 
Movable Type 5 : 成長するプラットフォーム
Movable Type 5 : 成長するプラットフォームMovable Type 5 : 成長するプラットフォーム
Movable Type 5 : 成長するプラットフォーム
 
MTDDC Tokyo 2011
MTDDC Tokyo 2011MTDDC Tokyo 2011
MTDDC Tokyo 2011
 
Movable Typeトライアルの提供方式はクラウド型に
Movable Typeトライアルの提供方式はクラウド型にMovable Typeトライアルの提供方式はクラウド型に
Movable Typeトライアルの提供方式はクラウド型に
 
Movable Type BB Seminar 2012
Movable Type BB Seminar 2012Movable Type BB Seminar 2012
Movable Type BB Seminar 2012
 
シックス・アパートのWebサイトの管理
シックス・アパートのWebサイトの管理シックス・アパートのWebサイトの管理
シックス・アパートのWebサイトの管理
 
Lekumo キャンペーンビルダー ProNet勉強会用資料
Lekumo キャンペーンビルダー ProNet勉強会用資料Lekumo キャンペーンビルダー ProNet勉強会用資料
Lekumo キャンペーンビルダー ProNet勉強会用資料
 

Semelhante a Securing your Movable Type installation

Security talk: Fortifying your Joomla! website
Security talk: Fortifying your Joomla! websiteSecurity talk: Fortifying your Joomla! website
Security talk: Fortifying your Joomla! website
Sigsiu.NET
 
Git Workshop : Git On The Server
Git Workshop : Git On The ServerGit Workshop : Git On The Server
Git Workshop : Git On The Server
Wildan Maulana
 
Application Security
Application SecurityApplication Security
Application Security
nirola
 

Semelhante a Securing your Movable Type installation (20)

Security talk: Fortifying your Joomla! website
Security talk: Fortifying your Joomla! websiteSecurity talk: Fortifying your Joomla! website
Security talk: Fortifying your Joomla! website
 
Git Workshop : Git On The Server
Git Workshop : Git On The ServerGit Workshop : Git On The Server
Git Workshop : Git On The Server
 
Apache Web Server Setup 4
Apache Web Server Setup 4Apache Web Server Setup 4
Apache Web Server Setup 4
 
are available here
are available hereare available here
are available here
 
Apache Web Server Setup 3
Apache Web Server Setup 3Apache Web Server Setup 3
Apache Web Server Setup 3
 
What's New and Newer in Apache httpd-24
What's New and Newer in Apache httpd-24What's New and Newer in Apache httpd-24
What's New and Newer in Apache httpd-24
 
Apache httpd v2.4
Apache httpd v2.4Apache httpd v2.4
Apache httpd v2.4
 
Apache HTTPD 2.4 - GWO2016
Apache HTTPD 2.4 - GWO2016Apache HTTPD 2.4 - GWO2016
Apache HTTPD 2.4 - GWO2016
 
Apache httpd 2.4 Reverse Proxy: The Hidden Gem
Apache httpd 2.4 Reverse Proxy: The Hidden GemApache httpd 2.4 Reverse Proxy: The Hidden Gem
Apache httpd 2.4 Reverse Proxy: The Hidden Gem
 
Front End Website Optimization
Front End Website OptimizationFront End Website Optimization
Front End Website Optimization
 
20190516 web security-basic
20190516 web security-basic20190516 web security-basic
20190516 web security-basic
 
FIWARE Wednesday Webinars - How to Secure IoT Devices
FIWARE Wednesday Webinars - How to Secure IoT DevicesFIWARE Wednesday Webinars - How to Secure IoT Devices
FIWARE Wednesday Webinars - How to Secure IoT Devices
 
ApacheConNA 2015: What's new in Apache httpd 2.4
ApacheConNA 2015: What's new in Apache httpd 2.4ApacheConNA 2015: What's new in Apache httpd 2.4
ApacheConNA 2015: What's new in Apache httpd 2.4
 
Python cgi programming
Python cgi programmingPython cgi programming
Python cgi programming
 
Apache HTTPD 2.4 Reverse Proxy: The Hidden Gem
Apache HTTPD 2.4 Reverse Proxy: The Hidden GemApache HTTPD 2.4 Reverse Proxy: The Hidden Gem
Apache HTTPD 2.4 Reverse Proxy: The Hidden Gem
 
Application Security
Application SecurityApplication Security
Application Security
 
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
 
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
 
Tips on Securing Drupal Sites - DrupalCamp Atlanta (DCA)
Tips on Securing Drupal Sites - DrupalCamp Atlanta (DCA)Tips on Securing Drupal Sites - DrupalCamp Atlanta (DCA)
Tips on Securing Drupal Sites - DrupalCamp Atlanta (DCA)
 
Integrity protection for third-party JavaScript
Integrity protection for third-party JavaScriptIntegrity protection for third-party JavaScript
Integrity protection for third-party JavaScript
 

Mais de Six Apart KK

米国の最新事情にみる 「オウンドメディア」の活用法
米国の最新事情にみる 「オウンドメディア」の活用法米国の最新事情にみる 「オウンドメディア」の活用法
米国の最新事情にみる 「オウンドメディア」の活用法
Six Apart KK
 
Six Apart UniBaaS 解説書
Six Apart UniBaaS 解説書Six Apart UniBaaS 解説書
Six Apart UniBaaS 解説書
Six Apart KK
 
Zenback BIZの活用事例とソーシャルメディア連携最適化 TIPS
Zenback BIZの活用事例とソーシャルメディア連携最適化 TIPSZenback BIZの活用事例とソーシャルメディア連携最適化 TIPS
Zenback BIZの活用事例とソーシャルメディア連携最適化 TIPS
Six Apart KK
 

Mais de Six Apart KK (20)

Movable Type for AWS Starter Guide (en)
Movable Type for AWS Starter Guide (en)Movable Type for AWS Starter Guide (en)
Movable Type for AWS Starter Guide (en)
 
ミニマムリソースでロング&ミドルリターンを目指す Six Apartブログ のお話
ミニマムリソースでロング&ミドルリターンを目指す Six Apartブログ のお話ミニマムリソースでロング&ミドルリターンを目指す Six Apartブログ のお話
ミニマムリソースでロング&ミドルリターンを目指す Six Apartブログ のお話
 
書いてもらう広報の時代は終わった! オウンドメディアで攻める広報術
書いてもらう広報の時代は終わった! オウンドメディアで攻める広報術書いてもらう広報の時代は終わった! オウンドメディアで攻める広報術
書いてもらう広報の時代は終わった! オウンドメディアで攻める広報術
 
Movable type for AWS Starter Guide
Movable type for AWS Starter GuideMovable type for AWS Starter Guide
Movable type for AWS Starter Guide
 
始めよう! 新サービス MovableType.net の全て
始めよう! 新サービス MovableType.net の全て始めよう! 新サービス MovableType.net の全て
始めよう! 新サービス MovableType.net の全て
 
元・記者の目から見た企業オウンドメディア運営の勘所
元・記者の目から見た企業オウンドメディア運営の勘所元・記者の目から見た企業オウンドメディア運営の勘所
元・記者の目から見た企業オウンドメディア運営の勘所
 
米国の最新事情にみる 「オウンドメディア」の活用法
米国の最新事情にみる 「オウンドメディア」の活用法米国の最新事情にみる 「オウンドメディア」の活用法
米国の最新事情にみる 「オウンドメディア」の活用法
 
シックス・アパート社のご紹介とオウンドメディアへの取り組み
シックス・アパート社のご紹介とオウンドメディアへの取り組みシックス・アパート社のご紹介とオウンドメディアへの取り組み
シックス・アパート社のご紹介とオウンドメディアへの取り組み
 
Six Apart UniBaaS 解説書
Six Apart UniBaaS 解説書Six Apart UniBaaS 解説書
Six Apart UniBaaS 解説書
 
Mtddc meetup kyushu_2013_keynote_2
Mtddc meetup kyushu_2013_keynote_2Mtddc meetup kyushu_2013_keynote_2
Mtddc meetup kyushu_2013_keynote_2
 
ギズモード・ジャパンのつくり方
ギズモード・ジャパンのつくり方ギズモード・ジャパンのつくり方
ギズモード・ジャパンのつくり方
 
人に読まれて育てる企業オウンドメディアのはじめ方 ~運用7ヶ月を振り返って、現場担当者からのTIP集~
人に読まれて育てる企業オウンドメディアのはじめ方 ~運用7ヶ月を振り返って、現場担当者からのTIP集~人に読まれて育てる企業オウンドメディアのはじめ方 ~運用7ヶ月を振り返って、現場担当者からのTIP集~
人に読まれて育てる企業オウンドメディアのはじめ方 ~運用7ヶ月を振り返って、現場担当者からのTIP集~
 
テキストだけでクリックはどのくらい変わるのか!? Zenback ADS 広告効果のご紹介
テキストだけでクリックはどのくらい変わるのか!? Zenback ADS 広告効果のご紹介テキストだけでクリックはどのくらい変わるのか!? Zenback ADS 広告効果のご紹介
テキストだけでクリックはどのくらい変わるのか!? Zenback ADS 広告効果のご紹介
 
ソーシャルメディアキャンペーン施策のポイントと、Lekumo(ルクモ)の効果
ソーシャルメディアキャンペーン施策のポイントと、Lekumo(ルクモ)の効果ソーシャルメディアキャンペーン施策のポイントと、Lekumo(ルクモ)の効果
ソーシャルメディアキャンペーン施策のポイントと、Lekumo(ルクモ)の効果
 
スカパー!が実践するソーシャルメディア連携施策とそのツール戦略
スカパー!が実践するソーシャルメディア連携施策とそのツール戦略スカパー!が実践するソーシャルメディア連携施策とそのツール戦略
スカパー!が実践するソーシャルメディア連携施策とそのツール戦略
 
日本初ソーシャルメディア・リードとしてツールにもとめるもの
日本初ソーシャルメディア・リードとしてツールにもとめるもの日本初ソーシャルメディア・リードとしてツールにもとめるもの
日本初ソーシャルメディア・リードとしてツールにもとめるもの
 
Azure と MT のフシギな関係
Azure と MT のフシギな関係Azure と MT のフシギな関係
Azure と MT のフシギな関係
 
MTDDC Tokyo 2012
MTDDC Tokyo 2012MTDDC Tokyo 2012
MTDDC Tokyo 2012
 
VMインポート機能を使った簡単サーバ構築
VMインポート機能を使った簡単サーバ構築VMインポート機能を使った簡単サーバ構築
VMインポート機能を使った簡単サーバ構築
 
Zenback BIZの活用事例とソーシャルメディア連携最適化 TIPS
Zenback BIZの活用事例とソーシャルメディア連携最適化 TIPSZenback BIZの活用事例とソーシャルメディア連携最適化 TIPS
Zenback BIZの活用事例とソーシャルメディア連携最適化 TIPS
 

Securing your Movable Type installation