php×ܽᣨ5£©
showmessage()¡¢cpmsg()¡¢showsettings()
ÓÐÁ½¸öglobal.func.php·Ö±ðÔÚincludeÓëadminÀïÃæ¡£
forumdata´æ·Å»º´æ¡¢Ä£°å»º´æ¡¢ÉÏ´«¸½¼þµÈ£¬Òò´ËÊôÐÔ±ØÐëÊÇ777¡£
archiverÓëwap´æ·ÅÁËÁ½¸ö×Óϵͳ£¬·Ö±ðΪËÑË÷ÒýÇæºÍÊÖ»úÓû§×¼±¸µÄ
ÖØмÆËã»ý·ÖµÄÌõ¼þ£¬Óû§¿ÉÒÔ¶¨Òå×Ü»ý·Ö¼ÆË㹫ʽ£¬µ«Ä¬ÈÏÇé¿öÏ£¬×Ü»ý·ÖµÈÓÚ»ý·Ö1£¬updatecredits()£¬updatepostcredits()º¯ÊýÖØмÆËã»ý·Ö¡£
¶Ô$_GET¡¢$_POST¡¢$_COOKIEÊͷųÉÈ«¾Ö±äÁ¿£¬¶ÔÓÚÊý×éÖÐÒÔ_¿ªÍ·µÄKEY»á±»ºöÂÔ¡£
ÓÉÓÚËÑË÷ÒýÇæץȡµÄºÜƵ·±£¬Òò´Ë¿ÉÒÔ´Ó¼¼ÊõÉϽûÖ¹Ö©ÖëµÄ·ÃÎÊ£¬Discuz!»áÊä³öHTTP/1.1 403 Forbidden¡£
unset()º¯ÊýÓÃÀ´ÊÍ·ÅһЩ±äÁ¿£¬±£ÕÏ°²È«
preg_match("/[\d\.]{7,15}/", $onlineip, $onlineipmatches)ÓÃÀ´¶ÔIPµØÖ·×öһЩÑϸñ¹ýÂË¡£
onlineipÐèÒªÑϸñµÄУÑ飬ÒòΪHTTP_X_FORWARDED_FORÊDz»ÄÜÏàÐŵġ£
theads±íÓëposts±í¶¼ÓÐfid×ֶΣ¬ËäÈ»Êý¾Ý¿â½á¹¹ÓÐЩÈßÓ࣬µ«ÕâÑùµÄÉè¼ÆºÜ³£¼û£¬±ÜÃâ¹ý¶àµÄÁ¬±í²Ù×÷¡£
random() formhash() quescrypt() $_DSESSION['sid'] = random(6) $_DSESSION['seccode'] = random(6, 1) º¯Êý»áËæ»ú
filemtime()º¯ÊýÓÃÀ´È¡µÃÎļþµÄ×îºóÐÞ¸Äʱ¼ä£¬Ò²»á²úÉúIO²Ù×÷£¬½¨Òé·âװһϡ£
touch()º¯Êý¿ÉÒÔ²úÉúÒ»¸ö¿ÕÎļþ£¬Ò²¿ÉÒԸıäÎļþµÄ×îºó·ÃÎÊʱ¼ä£¬²»Ó°ÏìÄÚÈÝ¡£
sidÊÇcdb_sessions±íµÄÖ÷¼ü£¬cdb_sessions±íÊÇÒ»ÖÖÄÚ´æ±í£¬ÄÚ´æ±íÖв»ÄÜÉèÖÃtextÀàÐÍ×ֶΡ£
require¡¢includeµÄÇø±ð¡£
$_DCOOKIE¡¢$_DSESSION¡¢$_DCACHE
°æ±¾ÅжÏʹÓà PHP_VERSION > '5.1' --------------------------------------------------------------------------------------------
$a = file_get_contents() $b = ob_get_contents() readfile() $arr = file() Èç¹ûÄ£°åÌṩ´ò°üÉÏ´«¹¦ÄÜ£¬·þÎñÆ÷Ŀ¼ÐèÒªÉèÖóÉ777ÊôÐÔ¡£ forumdata cache log attachments discuz smtay
phpbb
Ä£°å´óÖ¿ÉÒԷֳɽâÊÍÐÍ¡¢±àÒëÐÍ¡¢±àÒ뻺´æÐÍ¡£ ¶ÔÓÚ¶à·ç¸ñ³ÌÐò£¬µ±Óû§Çл»·ç¸ñʱ£¬²»ÐèҪÿ´ÎÖØбàÒëÄ£°å¡
Ïà¹ØÎĵµ£º
PHPÊǸöΰ´óµÄweb¿ª·¢ÓïÑÔ£¬Áé»îµÄÓïÑÔ£¬µ«ÊÇ¿´µ½php³ÌÐòÔ±Öܶø¸´Ê¼µÄ·¸µÄһЩ´íÎó¡£ÎÒ×öÁËÏÂÃæÕâ¸öÁÐ±í£¬ÁгöÁËPHP³ÌÐòÔ±¾³£·¸µÄ10ÖдíÎ󣬴ó¶àÊýºÍ°²È«Ïà¹Ø¡£¿´¿´Äã·¸Á˼¸ÖÖ
1.²»×ªÒâhtml entities
Ò»¸ö»ù±¾µÄ³£Ê¶£ºËùÓв»¿ÉÐÅÈεÄÊäÈ루ÌرðÊÇÓû§´ÓformÖÐÌá½»µÄÊý¾Ý£© £¬Êä³ö֮ǰ¶¼Òª×ªÒâ¡£
echo $_GE ......
»ù±¾ÔÀíÊÇ£ºÊ×ÏÈʹmcryptÈí¼þÄܹ»ÔËÐУ¬È»ºó°²×°phpÀ©Õ¹Ä£¿é£¬²¢ÔÚphp.iniÅäÖá£
ÕâÀï×¢ÒâµÄÊÇmcryptÈí¼þÒÀÀµlibmcryptºÍmhashÁ½¸ö¿â£¬ËùÒÔ°²×°ÅäÖÃ˳Ðò´ÓÓÒÖÁ×ó
Ò»,ÏÂÔØ°²×°mcrypt
1.ÏÈÈ¥http://www.sourceforge.netÏÂÔØLibmcrypt,mhash,mcrypt°²×°°ü ,ÏÂÃæÊÇÎÒÕÒµ½µÄÁ´½Ó
Libmcrypt(libmcrypt-2.5.8.t ......
PHP 5.3.1·¢²¼ÁË£¡´Ë´Î²¢Ã»ÓÐÔö¼Ó¶àÉÙÐÂÌØÐÔ£¬Ö÷ÒªÊǹ¦ÄܵĸĽøºÍbugµÄÐÞ¸´£º
ÐÂÔöÁËÒ»¸ömax_file_uploads²ÎÊý£¬ÓÃÓÚÏÔʾÿ¸öÇëÇóÉÏ´«ÎļþµÄ¸öÊý
ÐÂÔöÁËÔÙ´¦Àí¹ý³ÌÖеÄÍêÕûÐÔ¼ì²â
ÐÞ¸´ÁË´«µÝtempnam()º¯Êýʱsafe_modeÖеÄÎÊÌâ
ÐÞ¸´ÁË´«µÝposix_mkfifo()ʱopen_basedirÖеÄÎÊÌâ
ÐÞ¸´ÁËsafe_mode_include_dirÖеÄÎ ......
ÕâƪÎÄÕµijö·¢µãÊÇÎÒ¶Ô²å¼þ»úÖƵÄÀí½â£¬¼°ÆäÔÚPHPÖеÄʵÏÖ¡£´Ë·½°¸½öÊDzå¼þ»úÖÆÔÚPHPÖеÄʵÏÖ·½°¸Ö®Ò»£¬Ð´ÏÂÀ´ºÍ´ó¼Ò·ÖÏí£¬»¶Ó´ó¼ÒÒ»ÆðÌÖÂÛ¡£
²å¼þ£¬Ò༴Plug-in£¬ÊÇÖ¸Ò»ÀàÌض¨µÄ¹¦ÄÜÄ£¿é£¨Í¨³£ÓɵÚÈý·½¿ª·¢ÕßʵÏÖ£©£¬ËüµÄÌصãÊÇ£ºµ±ÄãÐèÒªËüµÄʱºò¼¤»îËü£¬²»ÐèÒªËüµÄʱºò½ûÓÃ/ɾ³ýËü£»ÇÒÎÞÂÛÊǼ¤»î»¹ÊǽûÓö¼²»Ó° ......
¶Ô±ÈÆð Cookie£¬Session ÊÇ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ»á»°£¬Ïà¶Ô°²È«£¬²¢ÇÒ²»Ïñ Cookie ÄÇÑùÓд洢³¤¶ÈÏÞÖÆ£¬±¾Îļòµ¥½éÉÜ Session µÄʹÓá£
ÓÉÓÚ Session ÊÇÒÔÎı¾ÎļþÐÎʽ´æ´¢ÔÚ·þÎñÆ÷¶ËµÄ£¬ËùÒÔ²»Å¿ͻ§¶ËÐÞ¸Ä Session ÄÚÈÝ¡£Êµ¼ÊÉÏÔÚ·þÎñÆ÷¶ËµÄ Session Îļþ£¬PHP ×Ô¶¯ÐÞ¸Ä Session ÎļþµÄȨÏÞ£¬Ö»±£ÁôÁËϵͳ¶ÁºÍдȨÏÞ£¬¶ø ......