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:

Potentially dangerous request--from QA?  Shocking!
Click for full size
By default, they tell me, Microsoft Internet Information Server will automatically “handle” HTML or doctype declarations by throwing up a stack trace. Thanks, Microsoft, for helping Web sites/applications abandon their dignity. Don’t let your developers fail to handle this correctly.

Leave a Reply

You must be logged in to post a comment.