Refresh/reload the page.Still not fixed?
Can't be sure about this, might be "deterministic tag soup" But it's worrying…Yes, this is technically an XSS.
Don't want to nag here, but still: that won't do. If there is a way for user input to mess up layout, XSS might be already possible or isn't far. In that case, it doesn't matter whether it's accessible via a toolbar, whoever wants to exploit it doesn't care for toolbars. Please get to the bottom of this problem…Yeah, need to tweak that toolbar a bit.
[man=1]sh[man]
The contents of this code block were copied and pasted below this code block.
The attached image is the resulting preview of that section.
The traditional way of implementing bbcodes is mere text substitution, so they don't really qualify as a markup language. There is no data structure that can be checked for invalid combinations of nested tags, there are no parsing rules whatsoever. For example, [URL=[ANCHOR]1[/ANCHOR]]2[/URL] is a perfectly "valid" piece of bbcode and it generates a garbage result: 1[/ANCHOR]]2.BB code is about as safe as any other tag-based markup language.
The syntax is just very reminiscent of HTML to me, so thank you for the correction. It seems it's more like the old HELPMAKE/QuickHelp markup format used in the days of DOS, albeit in a different form:The traditional way of implementing bbcodes is mere text substitution, so they don't really qualify as a markup language. There is no data structure that can be validated for invalid combinations of nested tags, there are no parsing rules whatsoever. For example, [URL=[ANCHOR]1[/ANCHOR]]2[/URL] is a perfectly "valid" piece of bbcode and it generates a garbage result: 1[/ANCHOR]]2.
QuickHelp \b+Bold \u+Underline \b-Bold \u-Underline
BB code [B]+Bold [U]+Underline [/B]-Bold [/U]-Underline
(improper nesting)
BB code [B]+Bold [U]+Underline [/U][/B][U]-Bold [/U]-Underline
(proper nesting)
Rendering +Bold +Underline -Bold -Underline