Presentation is loading. Please wait.

Presentation is loading. Please wait.

OWASP Japan 2 nd local chapter meeting Short talk of XSS Jun 27 2012 Yosuke HASEGAWA 短いXSSの話.

Similar presentations


Presentation on theme: "OWASP Japan 2 nd local chapter meeting Short talk of XSS Jun 27 2012 Yosuke HASEGAWA 短いXSSの話."— Presentation transcript:

1 OWASP Japan 2 nd local chapter meeting Short talk of XSS Jun 27 2012 Yosuke HASEGAWA 短いXSSの話

2 One day ある日

3 As always surfed websites, いつものように Web を眺めてると …

4 Just the usual XSS was found. いつものように XSS が見つかった。

5

6 First of all, view-source: とりあえず HTML ソース

7 What!? なにこれ !?

8 XSSed <!--"). SOURCE: System.Web FORM:" /> XSSed <!--"). SOURCE: System.Web FORM:" /> https://*.live.com/?param=> XSSed <!-- 不要なエラーメッセージが引き起こした XSS

9  Microsoft “live.com”  Over https  Needless error message Interesting but not really matter now 興味深いけれど今はどうでもいい

10 Why not “alert” ? なんで alert じゃないの ?

11 alert is common knowledge for XSSers alert は僕らの常識

12 Reason 理由

13 XSSed <!--"). SOURCE: System.Web FORM:" /> XSSed <!--"). SOURCE: System.Web FORM:" /> https://*.live.com/?param=> XSSed <!-- 最大 22 文字 > XSSed <!--

14 > XSSed <!--… 19 letters 22 文字以下で XSS させるのは難しい > alert(1) … 26 letters > eval(name) … 28 letters

15 XSS で任意のコードを動かすには何文字必要 ?

16 by Gareth Heyes

17 XSS Golf

18 <x/x=&{eval(name)}; // @0x6D6172696F Netscape 4 <svg/onload=eval(name)// @0x6D6172696F 19 letters 22 letters

19 Go back to the XSS 話を例の XSS に戻して

20 XSSed <!--"). SOURCE: System.Web FORM:" /> XSSed <!--"). SOURCE: System.Web FORM:" /> https://*.live.com/?param=> XSSed <!-- 最大 22 文字 > XSSed <!--

21 Impossible? No! 不可能?そんなことはない!

22 IE は "URL" プロパティを持っている > … 21 letters // Trap page created by attacker // or use window.open from JavaScript // Trap page created by attacker // or use window.open from JavaScript Mario Heiderich’s work

23 できた !! XSS Filter is disabled

24 22 文字あれば任意のコードが実行可能 "> 20 letters 22 letters 17 letters Run arbitrary code in 22 letters

25 10 letters eval(name) to run arbitrary code 9 letters eval(URL) 8 letters URL=name 6 letters $(URL) 任意コードを実行する最小の JavaScript

26 NetAgent http://www.netagent.co.jp/ OWASP Japan 2 nd local chapter meeting Question? hasegawa@utf-8.jp hasegawa@netagent.co.jp @hasegawayosuke http://utf-8.jp/

27


Download ppt "OWASP Japan 2 nd local chapter meeting Short talk of XSS Jun 27 2012 Yosuke HASEGAWA 短いXSSの話."

Similar presentations


Ads by Google