ã¬ã³ãã¼åãåãããã©ã¼ã ã«ãããã¢ãããã¼ããã¡ã¤ã«ã«èµ·å ããèå¼±æ§ãä¿®æ£ããã
2016 å¹´ 5 æ 3 æ¥ãã¬ã³ãã¼ã»ãªã³ã©ã¤ã³ã»ã¨ã³ã¿ã¼ãã¤ã¡ã³ãæ ªå¼ä¼ç¤¾ï¼ä»¥éãã¬ã³ãã¼ç¤¾ï¼ã«ãRépublique(リパブリック)ãã«ã¤ãã¦åãåãããã¨ãããåãåãããã©ã¼ã ã«èå¼±æ§ãçºè¦ãã¾ãããåæ¥ä¸ã«ã¬ã³ãã¼ç¤¾ããã³ IPA ã«å ±åããã¨ãããåæ 31 æ¥ãå½è©²èå¼±æ§ãä¿®æ£ããã¾ããã
ã¢ãããã¼ããã¡ã¤ã«ã«èµ·å ããèå¼±æ§
è¦ç´
ã¬ã³ãã¼ç¤¾ã®åãåãããã©ã¼ã ã§ã¯ãã¯ã¨ãªã¹ããªã³ã°ã§ Content-Type ãæå®ã§ããå®è£ ã§ãããã¢ãããã¼ããã¡ã¤ã«ã確èªããã¦ã§ããã¼ã¸ã§ããã®å®è£ ãæªç¨ãã¦ãã¦ã§ããã©ã¦ã¶ä¸ã§ä»»æã®ã¹ã¯ãªãããå®è¡ã§ãã¾ããã
èå¼±æ§ããã£ããåãåãããã©ã¼ã
å½è©²ãåãåãããã©ã¼ã ã§ã¯ãã¦ã¼ã¶ãåãåããã«é¢ãããã¡ã¤ã«ãã¢ãããã¼ãã§ãã¾ãï¼ä¸å³*1ï¼ããã®ã¢ãããã¼ãæ©è½ã§ã¯ããã¡ã¤ã«ã®æ¡å¼µåãæ¤è¨¼ãã¦ãã¾ããããã¡ã¤ã«ã®ä¸èº«ï¼ãã¸ãã¯ãã¤ããªã©ï¼ãæ¤è¨¼ãã¦ããªãããã§ããã¹ã¯ãªãããå«ã HTML ãã¡ã¤ã«ããa.jpegãã§ä¿åããã¨ãå½è©²ãåãåãããã©ã¼ã ã«ãa.jpegããã¢ãããã¼ãã§ãã¾ããã
ãåãåãããéä¿¡ããåã«ãã¢ãããã¼ããããã¡ã¤ã«ãã¦ã§ããã¼ã¸ã§ç¢ºèªã§ãã¾ãããã®ã¦ã§ããã¼ã¸ã§ã¯ãã¯ã¨ãªã¹ããªã³ã°ã«ãmimeããã©ã¡ã¼ã¿ãæå®ã§ãï¼å·¦ä¸å³ï¼ããã®ãã©ã¡ã¼ã¿ã®å¤ã Content-Type ãããã«ãã®ã¾ã¾åºåããã¾ããã試ãã« mime=text/plain ã¨æå®ããã¨ãContent-Type: text/plain; charset=utf-8 ã¨åºåããã¾ããï¼å³ä¸å³ï¼ã
èå¼±æ§ã®åç¾æé
ä¸è¨ã® (a), (b) ã®æé ã§èå¼±æ§ãåç¾ã§ãã¾ããã
(a) å½è©²åãåãããã©ã¼ã ã«ä¸è¨ã®HTMLãã¡ã¤ã«ããa.jpegãã¨ãã¦ã¢ãããã¼ããã
<html> <head> <title>test</title> <script>alert(1);</script> </head> <body> </body> </html>
(b) å½è©²èå¼±æ§ã®ããã¦ã§ããã¼ã¸ã«é·ç§»ãã¦ããmimeããã©ã¡ã¼ã¿ã«ãtext/htmlããæå®ããããã®çµæã¨ãã¦ãã¢ã©ã¼ããã¤ã¢ãã°ããããã¢ãã表示ã§ããï¼ä¸å³ï¼ã
ãã®èå¼±æ§ã«ããè å¨
ã¬ã³ãã¼ç¤¾ã«ã¯ããcontact.gungho.jp ãã¡ã¤ã³ã使ã£ããã£ãã·ã³ã°ãµã¤ãã«æªç¨ããããã¨ããè å¨ã¨ãã¦ãä¼ããã¾ããã
ã¬ã³ãã¼ç¤¾ã«ããèå¼±æ§ã®ä¿®æ£
2016 å¹´ 5 æ 29 æ¥ãå ±åããã¦ã§ããã¼ã¸ã§æ¹ãã¦åç¾æé ãå®æ½ããã¨ããããmimeããã©ã¡ã¼ã¿ãåé¤ããã¦ãã¾ããããã®ã¨ããContent-Type ãããã«ã¯ãimage/jpeg; charset=utf-8 ã¾ã㯠text/plain; charset=utf-8 ãè¨å®ããã¦ãã¾ããã
ã¦ã§ããã©ã¦ã¶ | Content-Type ãããã®å¤ |
---|---|
Google Chrome 50.0.2661.102 mï¼å·¦ä¸å³ï¼ | image/jpeg; charset=utf-8 |
Mozilla Firefox 46.0.1 | image/jpeg; charset=utf-8 |
MS Edge 25.10586.0.0ï¼å³ä¸å³*2ï¼ | text/plain; charset=utf-8 |
åè¿°ã®æé ã§èå¼±æ§ãåç¾ããªããªã£ããã®ã®ãä»»æã®ãã¡ã¤ã«ãã¢ãããã¼ãã§ãããã¨ã¯å¤ããã¾ããããã®ãããIE8 ãªã©ã®ã¦ã§ããã©ã¦ã¶ã§ã¯ã¾ã セキュリティ上の問題ãçºçããå¯è½æ§ãããã¾ãï¼2016 å¹´ 1 æ 13 æ¥ã§ IE8 ã®ãµãã¼ããçµäºãã¦ãã¾ããï¼ãããã§ãã¬ã³ãã¼ç¤¾ã«ä¿®æ£å®äºç¢ºèªãåãåãããã¨ãã«ãX-Content-Type-Options: nosniff ãææ¡ãã¾ãããå®éã« X-Content-Type-Options ããããåºåãããã¯ãã¬ã³ãã¼ç¤¾ã®å¤æ次第ã«ãªãã¾ãã
çºè¦ããä¿®æ£ã¾ã§ã®æç³»å
å¹´ææ¥ | ã¢ã¯ã·ã§ã³ |
---|---|
2016å¹´5æ3æ¥ | ã¬ã³ãã¼ç¤¾ããã³ IPA ã«èå¼±æ§ãå ±å |
åæ¥ | ã¬ã³ãã¼ç¤¾ããä¸æ¬¡è¿ä¿¡ |
2016å¹´5æ6æ¥ | ã¬ã³ãã¼ç¤¾ãããæ å½é¨ç½²ã«é£çµ¡ãããã¨ã®è¿ä¿¡ |
åæ¥ | IPA ããå±åºæ å ±åä¿¡ã®è¿ä¿¡ |
2016å¹´5æ10æ¥ | IPA ããå±åºæ å ±åçã®é£çµ¡ |
2016å¹´5æ11æ¥ | IPA ããå±åºæ å ±ãã¬ã³ãã¼ç¤¾ã«éç¥ããã¨ã®é£çµ¡ |
2016å¹´5æ29æ¥ | èå¼±æ§ãä¿®æ£ããããã¨ãç¢ºèª |
åæ¥ | ã¬ã³ãã¼ç¤¾ã«ä¿®æ£å®äºç¢ºèªãåãåãã |
2016å¹´5æ30æ¥ | IPA ããä¿®æ£å®äºã®é£çµ¡ |
åæ¥ | ã¬ã³ãã¼ç¤¾ããåãåããã¸ã®åç |
2016å¹´6æ1æ¥ | IPA ã«ã¬ã³ãã¼ç¤¾ã«ãèå¼±æ§æ å ±ããã³æç³»åãå ¬è¡¨ãããã¨ãã®é£çµ¡ãä¾é ¼ |
2016å¹´6æ3æ¥ | IPA ããã¬ã³ãã¼ç¤¾ã¸ã®æ å ±å±éããã³åæ±ãçµäºé£çµ¡ |
2016å¹´6æ5æ¥ | ãã®æ¥è¨ãå ¬é |
ãããã«
èå¼±æ§ãä¿®æ£ããã ããã¬ã³ãã¼ç¤¾ãå ±åããä¿®æ£ããã³åæ±çµäºã¾ã§èª¿æ´ããã ãã IPAãã対å¿ãããã¨ããããã¾ããã
*1:2016 å¹´ 6 æ 2 æ¥ã«åå¾ããã¹ã¯ãªã¼ã³ã·ã§ãã
*2:2016 å¹´ 6 æ 4 æ¥ã«åå¾ããã¹ã¯ãªã¼ã³ã·ã§ãã