ã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ï¼XSSï¼ã¯ãã³ã¼ãã®èå¼±æ§ã®ä¸ç¨®ã§ãããã¦ã¼ã¶ã¼ã®åæãèªè¦ãªãã«ãã©ã¦ã¶å ã§ã³ã¼ããå®è¡ãããã¨ãã§ãã¾ãã XSSã¯ä¸è¬çã«JavaScriptã§å®è¡ããã¾ãããFlashãJavaãªã©ã®é¡ä¼¼ã®Webããã°ã©ãã³ã°ã使ç¨ããããã¨ãããã¾ãã
XSSã¯ãã©ã¦ã¶å ã«ããã¦ãã»ãã·ã§ã³ï¼ã¯ããã¼ï¼ã使ç¨ãã¦ãããªãã®ä»£ããã«ãµã¤ãã¨ã®ããåããå¯è½ã«ããã³ã¼ãå©ç¨ãããã¨ã§ãæ»æè ãããªãã¨åã権éã§ã®ã¢ã¯ã»ã¹ãå¯è½ã¨ãã¾ãã
æªæã®ããXSSã³ã¼ããå®è¡ãã¦ãããã¼ã¸ã«ã¢ã¯ã»ã¹ããã¨ãæ°ããã³ã³ãã³ãã®æ稿ãä»ã®ã¦ã¼ã¶ã¼ã¸ã®åéç³è«ãæ票ããµã¤ãã®ç®¡çè¨å®ã®å¤æ´ãªã©ããµã¤ãå ã§ããªããè¡ãäºãã§ãããããããæä½ã第ä¸è ãè¡ããã¨ãã§ããç¶æ ã¨ãªãã¾ãã
ãªããã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ãã¨å¼ã°ãã¦ããã®ãï¼
ã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ã®æ´å²ã«é¢ããè¨äºã®ä¸ã§ãJeremiah Grossmanã¯XSSã«ã¤ãã¦ä»¥ä¸ã®ããã«èª¬æãã¦ãã¾ãã
æªæã®ããWebãµã¤ãã¯é£æ¥ãããã¬ã¼ã ãã¦ã£ã³ãã¦ã«å¥ã®Webãµã¤ããèªã¿è¾¼ã¿ãããã«JavaScriptãèªã¿è¾¼ã¾ãã¾ããããã«ããããããµã¤ãããµã¤ãã®å¢çãè¶ãã¦å¥ã®ãã¼ã¸ã«ã¹ã¯ãªãããæ¸ãè¾¼ãã ãããã©ã¼ã ãããã¼ã¿ãåãåºãããããã¼ã¸ãæ¸ãç´ããããããã¨ãã§ããããã«ãªãã¾ãããã®ãããã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ã¨ããååãä»ãããã¾ããã
å½æã¯ãXSSã¯ãããµã¤ãã®æªæã®ããã³ã¼ããå¥ã®ãµã¤ãã«å½±é¿ãåã¼ãã¨ãããã¨ãæå³ãã¦ãã¾ãããããããæè¿ã§ã¯ããã ãã§ã¯ãªãããã©ã¦ã¶ããã¼ã¿ã¨ãã¦ã§ã¯ãªããå®è¡å¯è½ãªã³ã¼ãã¨ãã¦èªèãã¦ãã¾ããããªå½¢å¼ã®ã³ã¼ãï¼Javascriptã ãã¨ã¯éããªãï¼ã®æ¿å
¥ã¨ãããå
¨è¬çãªHTMLã³ã¼ãã¤ã³ã¸ã§ã¯ã·ã§ã³ãæå³ãã¾ãã
ã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ã¯ã©ã®ããå®è¡ãããã®ã§ããï¼
ãã®ãããªã§ã¯ãæªæã®ãã訪åè ãXSSã使ç¨ãã¦ã¦ã¼ã¶ã¼ã®ãã¹ã¯ã¼ããå¤æ´ã§ããã¨ãããä¸é©åãªãµã¤ãã®ä¾ã示ãã¦ãã¾ã ã次ã«ãSecurity Reviewã¢ã¸ã¥ã¼ã«ã使ç¨ãã¦ããµã¤ãå ã®XSSã®èå¼±æ§ãç¹å®ããä¿®æ£ããæ¹æ³ã示ãã¾ããSecurity Reviewã¢ã¸ã¥ã¼ã«ã¯å®å ¨ãªè§£æ±ºçã§ã¯ããã¾ãããä¸è¬çãªèå¼±æ§ãçºè¦ããã ãã§ãã
ã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ãç¹å®ããã«ã¯ã©ãããã°ããã§ããï¼
次ã«ãã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ã®èå¼±æ§ãç¹å®ããããã¤ãã®æ¹æ³ãè¦ã¦ã¿ã¾ãããã åºæ¬çãªåé¡ã¨ãã¦ã¯ããã©ã¦ã¶å
ã§ã³ã¼ããå®è¡ã§ãããã¨ã§ãã ã»ãã¥ãªãã£ã¬ãã¥ã¼ã§ã¯JavaScriptã®èå¼±æ§ãããè¦åãããã¾ãããä»ã®æ»ææ段ãç¡è¦ãã¹ãã§ã¯ããã¾ããã
ããã¾ã§ã®çµé¨ããã3ã¤ã®æ¹æ³ãå©ç¨ããã¨ã»ãã¥ãªãã£ã¼ã¬ãã¥ã¼ãå¹çåããäºãã§ãã¾ãã
- JavaScriptã®alert() ã¡ã½ããã§è¡¨ç¤ºãããããã¯ã¹ãªã©ãè¦éãã«ãããããã¢ãããããã®ã使ç¨ãã¦ãã ããã
- ã¤ã³ã¸ã§ã¯ã·ã§ã³ãè¡ãããå ´æã«åºæã®è¦åã®å 容ãä½ãããããã辿ãäºãã§ããããã«ãã¾ãã
- ãã£ã¼ã«ãã«ããããã£ã«ã¿ãªã³ã°ããæ å ±ã®ã¿ã¤ããç°ãªãå¯è½æ§ãããã®ã§ãè¤æ°ã®ã¡ã½ããã試ãã¦ã¿ã¾ãããã
å ·ä½çã«ã¯ããããã®2ã¤ã®æååãã¤ã³ã¸ã§ã¯ã·ã§ã³ãããã¨ãã¾ãã
"><script>alert('blog-node-title');</script>
"><img src="u.png" onerror="alert('blog-node-title');"</script>
"> ã§å§ã¾ãæååãå ¥åãããã¨ã§ããã®æååãHTMLå±æ§ã®ä¸ã«å±éãããå ´åã«ã¤ã³ã¸ã§ã¯ã·ã§ã³ãçºçããããã¨ãã§ãã¾ãããããã®æååãæ稿ãã¦ãµã¤ããé²è¦§ããã¨ãJavaScriptã®ãããã¢ããããã¯ã¹ã表示ããããã¨ãããã¾ãã
ã¢ã©ã¼ãå ã®ã¡ãã»ã¼ã¸ï¼åã®ä¾ã®blog-node-titleãªã©ï¼ã調ã¹ã¦ããããã¤ã³ã¸ã§ã¯ã·ã§ã³ããã³ã¼ãã®altertã§æå®ããæååã«ç±æ¥ãããã¨ã確èªãã¦ãã ããããã®å¾ããã¼ã¸ã®HTMLã調ã¹ã¦ãJavaScriptãæ¼ãã¦ããç®æãè¦ã¤ããã³ã¼ãããã¬ã¼ã¹ãã¦é©åãªãã£ã«ã¿é¢æ°ã追å ãããã¨ãã§ãã¾ãã
çµããã«
XSSã¯Drupalã«éããWebã·ã¹ãã ãWebãµã¤ãå ¨è¬ã§è å¨ã«ãªãåé¡ã§ãã
Drupalã®å ´åãForm API ã Input Filter ãé©åã«å©ç¨ããã°ä½ãåé¡ããã¾ãããããããã使ããã«ç´æ¥ãã©ã¼ã ãå¶å¾¡ãããJavascriptãåãè¾¼ãã ãããã¨èå¼±æ§ã«ç¹ããå¯è½æ§ãããã¾ãã
ç¬èªã«ã«ã¹ã¿ãã¤ãºããæ©è½ãä½æããå ´åã¯ãfilter_xss ã check_plain ãªã©ã®APIãå©ç¨ãã¦é©åã«ã¨ã¹ã±ã¼ããè¡ã£ã¦ãã ããã
ãµãã¿ã¤ãºç¨ã«ç¨æããã¦ããAPI㯠Sanitiation functions ã§ç¢ºèªãããã¨ãã§ãã¾ãã
ããããè¨äº
é¢é£ã³ã³ãã³ã
- Drupalãã¼ãéçºã«ãããé©æ°çãªæ©è½: Single Directory Components (SDC)
- Drupalã«ãããAIï¼é©ãã¹ãæ©è½ã®ææ°ãã¢ã示ãæªæ¥
- Drupal CMSã®ä»å¾ã®å±æ
- DDEVãç¨ãã¦Drupal CMS(Drupal Starshot)ãã¤ã³ã¹ãã¼ã«ãã
- Dries Buytaertæ°ã®åºèª¿è¬æ¼ãæããã«ããDrupalã®æªæ¥
- 大è¦æ¨¡ãµã¤ãã®CMSé¸å®åºæº - ã¤ã³ãã©ã³ã¹ãã¨éç¨è² è·ã®æé©åã¬ã¤ã
- Drupalãã¼ã¹ã®ECæ§ç¯äºä¾ - ã¤ã³ãã©ã³ã¹ããæãã大è¦æ¨¡ãµã¤ãéç¨
- Drupalã®ç¹å¾´ã¨ã¯ï¼ ä»CMSã¨ã®æ¯è¼è§£èª¬
- 大è¦æ¨¡Drupalãµã¤ãã®ã»ãã¥ãªã㣠- éç¨è² è·ãæããå ç¢ãªç°å¢æ§ç¯
- Drupalã®åºæ¬ï¼æ£ããèªã¿æ¹ã¨æ´å²
Drupal åå¿è è¬åº§ããã¯ãã³ãã¼
- Drupal 9/10 åå¿è è¬åº§
- 第 1 å æ´å²ã«è¦ã Drupal ã® DNA
- 第 2 å Drupal ã¯ãã¬ã¼ã ã¯ã¼ã¯ãï¼CMS ãï¼ä»ã® CMS ã¨ã®æ¯è¼
- 第 3 å Drupal ã®ç¹å¾´
- 第 4 å Drupal 9 / 10 ã®ã¤ã³ã¹ãã¼ã« (1)
- 第 5 å Drupal 9 / 10 ã®ã¤ã³ã¹ãã¼ã« (2)
- 第 6 å Drupal ã«ã³ã³ãã³ããæ稿ãã¦ã¿ã
- 第 7 å Drupal ã®ããã£ãã©ãªã¨ã¿ã¯ã½ããã¼ã®ä½¿ãæ¹
- 第 8 å ã³ã³ãã³ã管çã«ããã Drupal ã¨ä»ã® CMS ã¨ã®æ¯è¼
- 第 9 å Drupal ã®ãããã¯ã·ã¹ãã
- 第 10 å Drupal ã®æ¨æºã¯ã¨ãªãã«ãã¼ Views ã®ä½¿ãæ¹
- 第 11 å Drupal ã¨ä»ã® CMS ã®ã¯ã¨ãªãã«ãã¼æ©è½ãæ¯è¼
- 第 12 å Drupal ã®å¤è¨èªæ©è½ã¨ä»ã® CMS ããµã¼ãã¹ã¨ã®æ¯è¼
- 第 13 å Drupal ã®æ¨©éè¨å®ã¨ WordPress ã Movable Type ã¨ã®æ¯è¼
- 第 14 å Drupal ã®ãã¼ãã·ã¹ãã ã«ã¤ãã¦
- 第 15 å Drupal ã®æ¡å¼µã¢ã¸ã¥ã¼ã«ã®é¸å®ã¨ä½¿ãæ¹
- 第 16 å Drupal ããã£ã¨ç¥ãããæ¹ã«åããå種æ å ±