Input Validation and Output Encoding
Input validation and output encoding are key aspects of web application security. This morning I've just been using a data search on a website and came across this when no results were found:
I imagine "escape(escape())" is some attempt at preventing cross-site scripting (XSS), but implemented correctly. Interestingly, when search results are found there are several "-->" appearing. Another indicator of output encoding problems.
It doesn't have to be difficult - read the OWASP XSS Prevention Cheat Sheet.
Posted on: 11 March 2010 at 11:00 hrs

Comments are filtered automatically and should appear shortly after they been checked.