ãã£ã¹ã¯ãç ´æ£ããããè²æ¸¡ãããããå ´åã«ã¯ãããããããã£ã¹ã¯ã®å 容ãæ¶å»ãã¦ãããªãã¨æ å ±ãæ¼ããããå±éºæ§ããããåç´ã«ãã¡ã¤ã«ãåé¤ããã ãã§ã¯ããã¡ã¤ã«ã復活ããããã¨ãã§ããããã¼ã¿ãå®å ¨ã«æ¶å»ããããã«ã¯ããã£ã¹ã¯å ¨ä½ã«æ¸¡ã£ã¦ãã¼ã¿ãå®å ¨ã«ä¸æ¸ãããå¿ è¦ãããã é£è¼ç®æ¬¡ 解説 ã³ã³ãã¥ã¼ã¿ããã¼ããã£ã¹ã¯ãç ´æ£ããããä»äººã«è²æ¸¡ãããããå ´åãå é¨ã®ãã¼ã¿ãå®å ¨ã«æ¶å»ãã¦ãããªãã¨ããããã社å ã®æ©å¯æ å ±ã顧客æ å ±ãã¡ã¼ã«ã»ã¢ãã¬ã¹ãªã©ãæ¼ãããã¦ãã¾ãå±éºæ§ããããå®éãä¸å¤ã§è³¼å ¥ããã³ã³ãã¥ã¼ã¿ã®ãã¼ããã£ã¹ã¯ã«å¯¾ãã¦ãã¼ã¿å¾©å ã½ããã¦ã§ã¢ãå®è¡ããã¨ãããããå»çæ©é¢ãå¥åº·ä¿éºçµåãªã©ã«å»çè²»ãè«æ±ããããã«ä½æãã診çå ±é ¬æç´°æ¸ã®ç»åãã¼ã¿ãåãåºãããã¨ããäºä¾ãç·åçã®ãå½æ°ã®ããã®æ å ±ã»ãã¥ãªãã£ãµã¤ããã§å ±åããã¦ããã å½æ°ã®ããã®æ å ±ã»ãã¥ãªãã£ãµã¤ãï¼
SQLãç¨ãã¦ãã¼ã¿ãã¼ã¹ãæ±ãWebã¢ããªã±ã¼ã·ã§ã³ã¯ãSQLæ³¨å ¥ã許ããªãããã«ããå¿ è¦ããããSQLæ³¨å ¥æ»æ対çã®ãã¡ãã¾ãã¯å®è£ ã«ããã対çã«ã¤ãã¦è¿°ã¹ãã æèã«å¿ããç¹æ®è¨å·å¯¾çã¯ã³ãã³ãæ³¨å ¥æ»æ対çã¨åæ§ã§ãããå ãã¦ãããªãã¢ã¼ãã¹ãã¼ãã¡ã³ãã®ä½¿ç¨ãè¨èªã®é¸æã«ãã対çã説æããã ãSQLæ³¨å ¥ï¼SQL injectionï¼ãã¯ããã©ã¡ã¼ã¿ãåãè¾¼ãã§SQLæãçµã¿ç«ã¦ãå ´åããã®ãã©ã¡ã¼ã¿ã«ç¹æ®è¨å·ï¼è¨å·ï¼ãå«ã¾ããSQLã³ãã³ããä¸ãããã¨ã«ãã£ã¦ããã¼ã¿ãã¼ã¹ã®ä¸æ£æä½ãå¯è½ã¨ãªã£ã¦ãã¾ãåé¡ã§ããã åèï¼ CWE-89: Improper Neutralization of Special Elements used in an SQL Commandï¼æ¥æ¬èªè¨³ï¼ SQLæ³¨å ¥æ»æã®ã¡ã«ããºã ããã«ã次ã®ãããªSQLæã使ç¨ãããã°ã¤ã³å¤å®ããã°ã©ã ãããã¨ãã
Javaã®ããã·ã¥å¤ãæ±ããããã«ãjava.security.MessageDigestã¯ã©ã¹ã使ã£ãããããã ã¶ã£ã¡ãããããªãæ±ããã®ã«ä¾å¤å¦çã ã¼ãã¢ã«ã´ãªãºã ã¯ï½ã ã¼ãªã㦠é¢åãããã®ã§ã©ããã³ã°ãã¦ã¿ãã packege mbs.security; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * ããã·ã¥å¤çææ©è½ãæä¾ * @auther Mahny */ public class Encrypter{ /** * ã¡ãã»ã¼ã¸ãã¤ã¸ã§ã¹ãï¼MD5 */ public static final String ALG_MD5= "MD5"; /** * ã¡ãã»ã¼ã¸ãã¤ã¸ã§ã¹ãï¼SHA-1 */ public static final String
è¿å¹´ãæ¨çåæ»æã¯ããåãåã水飲ã¿å ´åã®åºç¾ã使ããããã«ã¦ã§ã¢ã®é«æ©è½åãªã©ã¾ãã¾ãå¤æ§åãã¦ããã被害ãå¾ã絶ã¡ã¾ãããåå ã®1ã¤ã«ã¯ãã¦ã¤ã«ã¹å¯¾çã½ããçã®å ¥å£å¯¾çãçªç ´ãã¦ä¾µå ¥ãæãããæ»æãæ å ±ã·ã¹ãã å é¨ã§å¯ãã«æ´»åãã¦ããã®ãæ¤ç¥ã§ãããæ å ±æµåºçã®å®å®³ãçºè¦ããã¾ã§æ»æã«æ°ä»ããªããã¨ãå¤ããã¨ãæãããã¾ãã IPAã§ã¯2010å¹´12æã«ãè å¨ã¨å¯¾çç 究ä¼ããè¨ç½®ããæ¨çåæ»æããçµç¹ã®æ å ±ã·ã¹ãã ãå®ãããã®ã·ã¹ãã è¨è¨ã¬ã¤ããå ¬éãã¦ãã¦ãããæ¬æ¸ã¯ãã®ææ°æ¹è¨çã¨ãªãã¾ããæ¬çã§ã¯ãã·ã¹ãã å é¨ã«æ·±ãä¾µå ¥ãã¦ããé«åº¦ãªæ¨çåæ»æã対象ã«ãã·ã¹ãã å é¨ã§ã®æ»æããã»ã¹ã®åæã¨å é¨å¯¾çãã¾ã¨ãã¦ãã¾ãã ã¾ããåçã«å¯¾ãããã¢ãªã³ã°çµæãæè¦ãåºã«ãããã·ã¹ãã è¨è¨ã»éç¨ç¾å ´ãå©ç¨ãããããããæ¹è¨ãã¤ã³ãã®1ã¤ã¨ãã¦ã対çã以ä¸ã®ããã«æ´çãã¾ããã ï¼çµ±å¶ç®æ¨ã®æ
ãç¥ãã
é害
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}