Hi,
The code makes heavy use of the strip_tags() function in an effort to prevent XSS attacks. However, under some circumstances this not enough. For example, the onmouseover() JavaScript function can be used to perform XSS attacks.
For example:
This results in the user's cookie being displayed in a popup box. A real attacker would likley exploit this vulnerability to have the cookie sent to a machine under their control.
Rather than use strip_tags(), a better solution sould be to use htmlspecialchars, which would properly escape any unsafe characters, such as '<', '>', etc. (http://php.net/htmlspecialchars)
More details on preventing XSS here.
Cheers.
Will.
Anonymous
Hi Will, is this for version 1.2 ? Maybe try development 1.3 ?
https://github.com/phpipam/phpipam