Closed (works as designed)
Project:
Markdown
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2015 at 04:00 UTC
Updated:
4 Jun 2015 at 05:45 UTC
Jump to comment: Most recent
Comments
Comment #1
frjo commentedMarkdown filter converts Markdown into HTML. It does not pretend to have any security features. For that you should use filters like "Display any HTML as plain text" or "Limit allowed HTML tags".
This should maybe be clearly stated in the documentation. Any suggestion for how to formulate that?
Comment #2
yas@frjo
Actually the problem was found through our penetration test for Drupal site with Markdown filter. I like Markdown filter and I understand it is very helpful; however it is also good to have both Markdown filer feature + "Display any HTML as plain text" or "Limit allowed HTML tags", especially focused on passing through <script>...</script> tag.
Comment #3
yasComment #4
frjo commentedYes exactly, so please recommend the Drupal site you where testing to enable filters like "Display any HTML as plain text" or "Limit allowed HTML tags" for the Markdown textformat they have..
Comment #5
frobisn't this just works as designed? Markdown will let html pass. If you want protection from bad markup use html purifier or something.
Comment #6
frjo commented