Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are two issues with what you've proposed:</p> <ol> <li>I don't see a way for your users to be able to format posts. You took advantage of Markdown to provide nice numbered lists, for example. In the proposed no-tags-no-exceptions world, I'm not seeing how the end user would be able to do such a thing.</li> <li><strong>Considerably more important:</strong> When using Markdown as the "native" formatting language, and whitelisting the other available tags,you are limiting not just the input side of the world, but the output as well. In other words, if your display engine expects Markdown and only allows whitelisted content out, even if (God forbid) somebody gets to the database and injects some nasty malware-laden code into a bunch of posts, the actual site and its users are protected because you are sanitizing it upon display, as well.</li> </ol> <p>There are some good resources on the web about output sanitization:</p> <ul> <li><a href="http://www.diovo.com/2008/09/sanitizing-user-data-how-and-where-to-do-it/" rel="noreferrer">Sanitizing user data: Where and how to do it</a></li> <li><a href="http://www.analyticalengine.net/2008/09/output-sanitization/" rel="noreferrer">Output sanitization</a> (One of my clients, who shall remain nameless and whose affected system was <em>not</em> developed by me, was hit with this exact worm. We have since secured those systems, of course.)</li> <li><a href="http://www.biztechmagazine.com/article.asp?item_id=159" rel="noreferrer">BizTech: Best Practices: Never heard of XSS?</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload