English
¢¸¢· µÚ·Î
Ãë¾àÁ¡ID 22530
À§Çèµµ 40
Æ÷Æ® 80, ...
ÇÁ·ÎÅäÄÝ TCP
ºÐ·ù CGI
»ó¼¼¼³¸í ÇØ´ç À¥ ¼­¹ö´Â 5.3.8 º¸´Ù ´õ ¿À·¡µÈ PHPÀÇ ¹öÀüÀ» °¡µ¿ ÁßÀÌ´Ù. PHP´Â À¥ °³¹ß¿¡ ÀûÇÕÇÏ°í HTML¿¡ ÀÓº£µðµå(embedded) µÉ ¼ö ÀÖ´Â ³Î¸® »ç¿ë ÁßÀÎ ¹ü¿ë ½ºÅ©¸³Æà ¾ð¾îÀÌ´Ù. PHPÀÇ 5.3.8 ÀÌÀüÀÇ ¹öÀüµéÀº crypt() ÇÔ¼ö¿¡¼­ salted MD5 Çؽ¬¸¦ »ý¼ºÇÒ ¶§ ¹ö±×°¡ Á¸ÀçÇÑ´Ù. ÇØ´ç ÇÔ¼ö´Â salt ¿Í hash¸¦ ¸®ÅÏÇØ¾ß ÇÏ´Â °æ¿ì¿¡ salt¸¸ ¸®ÅÏÇÑ´Ù.
crypt() ÇÔ¼ö¸¦ »ç¿ëÇÏ´Â ¸ðµç ÀÎÁõ ¸ÞÄ¿´ÏÁò¿¡¼­ ÀÌ ¹ö±×·Î ÀÎÇÏ¿© ±ÇÇÑÀ» Çã¿ëÇÏ´Â ¹ö±×°¡ ¹ß»ýÇÒ ¼ö ÀÖ´Ù.

¿¹) > php -v
PHP 5.3.7RC6-dev (cli)

Test script:
---------------
printf("MD5: %s\n", crypt('password', '$1$U7AjYB.O$'));


Expected result:
----------------
MD5: $1$U7AjYB.O$L1N7ux7twaMIMw0En8UUR1

Actual result:
--------------
MD5: $1$U7AjYB.O

* ¾Ë¸²: ÀÌ Á¡°ËÇ׸ñÀº ÀÌ Ãë¾àÁ¡À» Á¡°ËÇϱâ À§ÇØ ÇØ´ç ¿ø°ÝÁö PHP ¼­¹öÀÇ ¹öÀü Á¤º¸¸¸À» È®ÀÎÇÑ´Ù. µû¶ó¼­ °ÅÁþ ¾ç¼º¹ÝÀÀ(False Positive)À» º¸ÀÏ ¼ö ÀÖ´Ù.

* Âü°í »çÀÌÆ®:
https://bugs.php.net/bug.php?id=55439
http://www.php.net/archive/2011.php#id2011-08-23-1

* ¿µÇâÀ» ¹Þ´Â Ç÷§Æû:
PHP 5.3.8 ÀÌÀüÀÇ ¹öÀüµé
Any operating system Any version
ÇØ°áÃ¥ PHP À¥ »çÀÌÆ®ÀÎ http://www.php.net/downloads.php ¿¡¼­ ±¸ÇÒ ¼ö ÀÖ´Â PHPÀÇ °¡Àå ÃֽŠ¹öÀü(5.3.8 ȤÀº ÀÌÈÄ)À¸·Î ¾÷±×·¹À̵å ÇÏ¿©¾ß ÇÑ´Ù.
°ü·Ã URL CVE-2011-3189 (CVE)
°ü·Ã URL 49376 (SecurityFocus)
°ü·Ã URL 69429 (ISS)