Hello,
It is possible to inject executable Javascript-Code into an error page generated by the default ErrorController?.document method.
Just put the code into the message URL parameter.
This is because:
- the error handler uses manipulatable request parameters
- the template shows those possible manipulated parameters as XML and not as escaped HTML/XML (IMHO quite irresponsible)
Since the error handling will be the last point where developers put attention to, even some will ignore it completely or use these defaults, this could be a sleeping vulnerablity to many of them.