Webã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦ã¯ãå¤é¨ããã®æ»æã«ãããWebãµã¼ãã®OSã³ãã³ããä¸æ£ã«å®è¡ããã¦ãã¾ãåé¡ãæã¤ãã®ãããã¾ãããã®åé¡ãæªç¨ããæ»æææ³ã¯ãä¸è¬ã«ãOSã³ãã³ãã»ã¤ã³ã¸ã§ã¯ã·ã§ã³ãã¨å¼ã°ãã¦ãã¾ãã OSã³ãã³ãã»ã¤ã³ã¸ã§ã¯ã·ã§ã³ã®èå¼±æ§ãããå ´åãæªæãããªã¯ã¨ã¹ãã«ãããWebãµã¼ãå´ã§æå³ããªãOSã³ãã³ããå®è¡ãããããéè¦æ å ±ãçã¾ããããæ»æã®è¸ã¿å°ã«æªç¨ãããå¯è½æ§ãããã¾ãã OSã³ãã³ãã»ã¤ã³ã¸ã§ã¯ã·ã§ã³æ»æãåããå ´åãWebãµã¼ãã«ä¿åããã¦ããéè¦æ å ±ãä¸æ£ã«åå¾ãããããWebãµã¼ããæ»æã®è¸ã¿å°ã¨ãã¦æªç¨ãããå¯è½æ§ãããã¾ãã OSã³ãã³ãã»ã¤ã³ã¸ã§ã¯ã·ã§ã³ã®å¯¾çã¨ãã¦ã次ã®å 容ããæ¤è¨ãã ããã æ ¹æ¬ç解決ã«ã¯ãã·ã§ã«ãèµ·åã§ããè¨èªæ©è½ã®å©ç¨ãé¿ããããããã¾ãã ããã¯ãOSã³ãã³ãã»ã¤ã³ã¸ã§ã¯ã·ã§ã³ã®åå ãä½ããªãå®è£ ã§ããWeb
èå¼±æ§è¾å ¸/OSã³ãã³ãã»ã¤ã³ã¸ã§ã¯ã·ã§ã³ å¥ç§°ï¼OS Command Injection æ¦è¦ â å¤é¨ãããµã¼ãä¸ã®ä»»æã®OSã³ãã³ããå®è¡å¯è½ã¨ããèå¼±æ§ããããªããµã¼ããå£ãããããä¹ã£ãããããããã¡ã¤ã«ãæµåºãããããå¯è½æ§ã®ããé常ã«æ·±å»åº¦ã®é«ãèå¼±æ§ã§ãã åå â åé ã®ç»åã¯ãsendmailã³ãã³ããå©ç¨ãã¦ã¡ã¼ã«éä¿¡ãããå¦çã«æ··å ¥ããOSã³ãã³ãã»ã¤ã³ã¸ã§ã¯ã·ã§ã³èå¼±æ§ã示ãããã®ã§ããå©ç¨è ããã©ã¼ã ã«ã¡ã¼ã«ã¢ãã¬ã¹ãå ¥åããã¨ããã®ã¡ã¼ã«ã¢ãã¬ã¹ã«å¯¾ãã¦èªåçã«ã¡ã¼ã«ãéä¿¡ããã¨ãããã®ã§ããå ·ä½çã«ã¯æ¬¡ã®ãããªå¦çã§ãï¼Perlï¼ã my $mail = CGI::param('mail'); open(MAIL, "|/usr/lib/sendmail $mail"); print MAIL "Subject: registered\n"; print
OSã³ãã³ãã¤ã³ã¸ã§ã¯ã·ã§ã³ãé²ãã«ã¼ã«ãä½æããï¼Webã¢ããªã±ã¼ã·ã§ã³ã«æ½ãã»ãã¥ãªãã£ãã¼ã«ï¼13ï¼ï¼1/3 ãã¼ã¸ï¼ â»ã注æ ä»ç¤¾ããã³ä»çµç¹ã®Webãµã¤ããªã©ã¸ã®ãã¼ãã¹ãã£ã³ããã³ãã¼ã¿ã®åå¾ãªã©ã®è¡çºã§å¾ãæ å ±ãä¾µå ¥ãªã©ã«æªç¨ããããã¾ãã¯åãç®çãæã¤ç¬¬ä¸è ã«æä¾ããæç¹ã§éæ³ã¨ãªãã¾ããã注æãã ããã æ¬ç¨¿ã®å 容ãæ¤è¨¼ããå ´åã¯ãå¿ ãå½±é¿ãåã¼ããªãéãããç°å¢ä¸ã§è¡ã£ã¦ä¸ããã ã¾ããæ¬ç¨¿ãå©ç¨ããè¡çºã«ããåé¡ã«é¢ãã¾ãã¦ã¯ãçè ããã³æ ªå¼ä¼ç¤¾ã¢ãããã¼ã¯ã»ã¢ã¤ãã£ã¯ä¸å責任ãè² ãããã¾ãããäºæ¿ãã ããã ååã¯ãã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°ãé²ãã«ã¼ã«ãä½æãããä»åã¯ãOSã³ãã³ãã¤ã³ã¸ã§ã¯ã·ã§ã³ç¨ã®ã«ã¼ã«ãèãã¦ã¿ããã¨ã«ããããOSã³ãã³ãã¯ä½¿ç¨OSã«ãã£ã¦ç°ãªããããä»åã¯UNIXç³»OSåãã®ã«ã¼ã«ãä½æããã ãªããååã®ã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}