ã¯ããã«
ã11æãFoxglove Securityã®ç 究è ããApache Software Foundationãæä¾ããJavaã©ã¤ãã©ãªCommons Collectionsã使ç¨ãã¦ãåã©ã¤ãã©ãªãå梱ãã¦ããã¢ããªã±ã¼ã·ã§ã³ãµã¼ããæ»æããææ³ãã¤ã³ã¿ã¼ãããã§å ¬éããã
ãCommons Collectionsã©ã¤ãã©ãªã¯ãWebSphereãWebLogicãJBossãªã©ã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®ä»ãJavaã¢ããªã±ã¼ã·ã§ã³ã§åºãå©ç¨ããã¦ãããæ¬èå¼±æ§ã¯å¤§ããªè©±é¡ã¨ãªã£ããJavaéçºè ã®æ¹ã§ããã°ããã§ã«è³ã«ãã¦ããã£ããããã¨ã ããã
ãæ¬ä»¶ã¯ãæ¬è³ªçã«ã¯ã©ã¤ãã©ãªã®å©ç¨è å´ããã·ãªã¢ã©ã¤ãºå¦çãã»ãã¥ã¢ã«å®è£ ãã¦ããªããã¨ã«èµ·å ããåã«ã©ã¤ãã©ãªã®ä¿®æ£ããã°ã©ã ãé©ç¨ããã ãã§ã¯ãæ ¹æ¬çãªå¯¾å¦ã¨ãªããªãã
ãæ¬è¨äºã§ã¯ãéçºè ã®çãã¾ãæ¬åé¡ãæ£ããç解ãã¦ãæ¬è³ªçãªå¯¾çãã¨ã£ã¦ããã ãããããåé¡ãæ»æã®ä»çµã¿ã«ã¤ãã¦æè¡è§£èª¬ããã
åé¡ã®æ¦è¦
ãæ¦è¦ã«ã¤ãã¦ã¯ããã¾ãã¾ãªè¨äºã«ãªã£ã¦ãããããåããã¨æããããªãã¸ã§ã¯ãã®ãã·ãªã¢ã©ã¤ãºæã«ä»»æã®ã³ã¼ããå®è¡ã§ãã¦ãã¾ãã¨ããåé¡ã§ããã詳細ã«ã¤ãã¦ã¯JVNVUãªã©ãåç §ããã ãããããå½±é¿ãåããæ¡ä»¶ã¯ã以ä¸2ç¹ã§ããã
- Commons Collectionsã©ã¤ãã©ãª v3ç³»ã¾ãã¯v4ç³»ãã¯ã©ã¹ãã¹ä¸ã«åå¨ãããã¨
- ã·ãªã¢ã©ã¤ãºããããªãã¸ã§ã¯ããå¤é¨ããåãã¨ã£ã¦ãããã¨
ã注æãã¹ãã¯ãæ示çã«Commons Collectionsã©ã¤ãã©ãªã®APIã使ã£ã¦ããªãã¦ããã©ã¤ãã©ãªãã¯ã©ã¹ãã¹ä¸ã«åå¨ããã ãã§å½±é¿ãåããç¹ã ãçç±ã«ã¤ãã¦ã¯å¾è¿°ããã
ãæ»æè ã¯ãç´°å·¥ãããªãã¸ã§ã¯ããã·ãªã¢ã©ã¤ãºãã¦åè¨æ¡ä»¶ãæºããã¢ããªã±ã¼ã·ã§ã³ãªã©ã«éä¿¡ãããã¨ã§ãåä¿¡å´ã®ãµã¼ãä¸ã§ä»»æã®ã³ã¼ããå®è¡ãããã¨ãã§ãããã·ãªã¢ã©ã¤ãºããããªãã¸ã§ã¯ããåãåããµã¼ãã¹ãã¤ã³ã¿ã¼ãããããã¢ã¯ã»ã¹å¯è½ãªå ´åã¯ãé éããæ»æãå¯è½ã§ããã
ãæ»æã®ä»çµã¿ã解説ããåã«ãã¾ãã¯æ¬åé¡ã説æããä¸ã§ãã¼ã¨ãªãã·ãªã¢ã©ã¤ãºããã·ãªã¢ã©ã¤ãºã«ã¤ãã¦ç°¡åã«èª¬æãããã
ã·ãªã¢ã©ã¤ãºã»ãã·ãªã¢ã©ã¤ãºã¨ã¯
ãã·ãªã¢ã©ã¤ãºã¨ã¯ãããã°ã©ã ã§æ±ããªãã¸ã§ã¯ãã®ç¶æ ãä¿æããã¾ã¾éåä¿¡ãããããã¡ã¤ã«ã¸èªã¿æ¸ããè¡ã£ããããããã«ããªãã¸ã§ã¯ãããã¤ãåãªã©ã«å¤æãããã¨ã§ããããã·ãªã¢ã©ã¤ãºã¯ãã®éã ãã·ãªã¢ã©ã¤ãºæã«ã¯ã対象ãªãã¸ã§ã¯ãããåç §ããã¦ãããªãã¸ã§ã¯ããã¾ãã·ãªã¢ã©ã¤ãºå¯¾è±¡ã¨ãªãããã¤ã³ãã¯ããã·ãªã¢ã©ã¤ãºæã«ãã·ãªã¢ã©ã¤ãºå¯¾è±¡ã¯ã©ã¹ãå®è£ ãã¦ããreadObjectã¡ã½ãããå®è¡ãããã¨ããã«ããã対象ãªãã¸ã§ã¯ãããå¥ã®ãªãã¸ã§ã¯ããåç §ãã¦ããå ´åã¯ãåãªãã¸ã§ã¯ãã®readObjectã¡ã½ãããé 次å®è¡ããããªãã¸ã§ã¯ãã復å ãããã
ãæ»æè ã¯ãããæªç¨ããreadObjectã¡ã½ãããå®è¡ãããéã«Runtime.exec()ãªã©ã使ã£ã¦OSã³ãã³ããªã©ãå®è¡ããããã«ç´°å·¥ããã
ãããã§ã¯ãæ»æã®ä»çµã¿ã«ã¤ãã¦è©³ããè¦ã¦ãããã