######################################################## # Special Greetings To - Timq,Warpboy,The-Maggot # ######################################################## File: index.php Affects: LS simple guestbook (v1) Date: 15th April 2007 Issue Description: =========================================================================== LS simple guestbook fails to sanitize user input that it writes to the posts.txt file when the user leaves a message, this file is then included causing any php code within it to be run. =========================================================================== Scope: =========================================================================== An attacker can inject arbitrary php code and potentially execute commands on the system. =========================================================================== Recommendation: =========================================================================== Add the following line of code in index.php: $message = strip_tags($message); just above: if ($message != \"\") {$file = fopen(\"$dataf\",\"a\"); =========================================================================== Example: name = Test message = <?php phpinfo(); ?> Discovered By: Gammarays
※本站提供的任何内容、代码与服务仅供学习,请勿用于非法用途,否则后果自负
您的会员可兑换次数还剩: 次 本次兑换将消耗 1 次
续费请拨打客服热线,感谢您一直支持 Seebug!
暂无评论