Gallery of Stack Traces: Potentially Dangerous? QA?
As you know, you should always test your edit boxes to make sure that it can handle things like HTML and XML tags within it, particularly the dreaded </html> and </xml> or </table> or <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">. At best, the application will handle it through any sort of mechanisms, such as:
- Accepting the value, but using escaped characters so that the application, browser, and database know this isn’t supposed to render.
- Disallowing use of the < or > characters.
- Performing client- or server-side validation to tell user to try again without the markup.
What the application should not do is this:
Click for full size