Graymatter - perl based web blog. offsite: http://www.greymatterforums.com/ GM analyze posting comments and if post contain some dangerous code (like ), administrator get message about it in log files. Log files contain not only message, but dangerous code. When admin try to look log files (Admin panel Options: "View Control Panel Log"), code execute in admin's browser. Example attack: Add comments: Name: Comment: And admin can't enter in "View Control Panel Log" menu, because this page is redirecting on attacker site. Solution: Edit gm-library.cgi. Like that: ----------------------------------------------------------- open (FUNNYFEET, "gm-cplog.cgi"); @gmlogfile = ; close (FUNNYFEET); foreach $gmlogfileline (@gmlogfile) { chomp ($gmlogfileline); $gmlogfileline=~s//#BOLD_OPEN#/ig; $gmlogfileline=~s/<\/b>/#BOLD_CLOSED#/ig; $gmlogfileline=~s//#FONT_OPEN#/ig; $gmlogfileline=~s/<\/font>/#FONT_CLOSED#/ig; $gmlogfileline=~s/<|>|<|>/#/ig; $gmlogfileline=~s/#BOLD_OPEN#//ig; $gmlogfileline=~s/#BOLD_CLOSED#/<\/b>/iig; $gmlogfileline=~s/#FONT_OPEN#//g; $gmlogfileline=~s/#FONT_CLOSED#/<\/font>/ig; print "$gmlogfileline
"; } print qq(All danger tags replace with # symbol
); ------------------------------------------------------- Sory for my english, it's not my primary language. --------------------------------------------------------- http://www.securityinfo.ru