Shibuya.pm#8 - ImageFight - HTML 2.0 New Browser Detection

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Group

    Shibuya.pm#8 - ImageFight - HTML 2.0 New Browser Detection - Presentation Transcript

    1. 続イメージファイト Shibuya.pm #8 サイボウズ・ラボ株式会社 竹迫 良範 id:TAKESAKO
    2. はじめに
    3. Internet Explorer のセキュリティ設定 デフォルトが「有効にする」のまま
    4.  
    5. IE での実行結果
    6. orz
    7. mod_imagefight イメージファイト
    8. イメージファイトとは? Apache 2 OutputFilter 無毒化 Web Server 攻撃コードが 含まれている かもしれない mod_imagefight Safe Image internet XSS Image
    9. mod_imagefight の使用法( α 版)
      • httpd.conf (例)
      LoadModule imagefight_module modules/mod_imagefight.so <Location />      # AddOutputFilter   ImageFight   .png .bmp .gif .jpg   AddOutputFilterByType ImageFight image/gif image/jpeg </Location> 拡張子、 Content-Type による Filter 適用
    10. mod_imagefight をインストールした Web サーバから PNG 画像を読み込んだとき(動的に画像を書き換え) イメージファイト動作画面( IE + Fiddler )
    11. IE コンテンツ自動判別による XSS 防止    Anti-XSS コードの自動挿入( Apache )
    12. Why? イメージファイト
    13. ブラウザ の バグ(仕様) Web アプリ側で ad-hoc に 対応するのは面倒だよね
    14.  
    15. 続 イメージファイト
    16. ブラウザ の バグ(仕様) を利用して、 ブラウザ判定できる?
    17. JavaScript/CSS を使わない ブラウザ判別
    18. HTML 2.0
    19. 突然ですが、HTML 2.0 Quiz の時間です。 <img src= &quot; 1.gif &quot; src= &quot; 2.gif&quot;> 表示される画像は? (1) 1.gif が表示される (2) 2.gif が表示される (3) ブラウザによって異なる Answers. 【問題】
    20. 突然ですが、HTML 2.0 Quiz の時間です。 <img src= &quot; 1.gif &quot; src= &quot; 2.gif&quot;> 表示される画像は? (1) 1.gif が表示される (2) 2.gif が表示される (3) ブラウザによって異なる Answers. 【問題】
    21. 【問題2】 <img /src = “1.gif” src(x00) = “2.gif” src(x0c) = “3.gif” src = “4.gif” /> (1) 1.gif が表示される (2) 2.gif が表示される (3) 3.gif が表示される (4) 4.gif が表示される Answers. ※ ブラウザによって異なる
    22. 応用問題
    23. print<<EOF; <img /src x00 =&quot;ie.gif&quot; /''src x00 =&quot;firefox1_5.gif&quot; /''src=&quot;firefox2_0.gif&quot; /&quot;&quot;src=&quot;gecko_others.gif&quot; &quot;s x00 rc=&quot;safari2.gif&quot; &quot;src=&quot;safari3.gif&quot; &quot;&quot;src=&quot;konqueror.gif&quot; src x00 =&quot;w3m.gif&quot; src x0c =&quot;opera.gif&quot; src=&quot;others.gif&quot; src=&quot;lynx.gif&quot; /> EOF
    24. http://wafful.org Demo
    25.  
    26. Konqueror や Safari2 の判定もできるよ
    27. 以上 続きは Web で
    28.     _  ∩    (  ゚∀゚ ) 彡     (   ⊂彡     |     |    し ⌒J わっふる ! わっふる ! wafful.org
    29. Debugging Browser-detection on papers ご清聴ありがとうございました

    + takesakotakesako, 3 years ago

    custom

    4468 views, 0 favs, 5 embeds more stats

    http://wafful.org/

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 4468
      • 3794 on SlideShare
      • 674 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 75
    Most viewed embeds
    • 651 views on http://labs.cybozu.co.jp
    • 19 views on http://shibuyahacks.tumblr.com
    • 1 views on http://www.hanrss.com
    • 1 views on http://feedpath.jp
    • 1 views on http://72.14.235.104

    more

    All embeds
    • 651 views on http://labs.cybozu.co.jp
    • 19 views on http://shibuyahacks.tumblr.com
    • 1 views on http://www.hanrss.com
    • 1 views on http://feedpath.jp
    • 1 views on http://72.14.235.104
    • 1 views on http://www5.atwiki.jp

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags

    Groups / Events