Repository navigation
Fix issue 91 - #106
Fix issue 91#106mmndaniel wants to merge 4 commits into
Conversation
|
Thanks for the PR @mmndaniel ! Highly appreciated 🙏 I'm not sure what the intent here is, but I'm pretty sure something is missing. According to MDN, the API expects a node rather than a string. Also, the variable you use inside the try-catch block does not exist. Without the try-catch you'd see this solution doesn't work currently, do you mind explaining again the logic you had in your mind behind this attempt please? |
|
Ah shit, sorry, was coding in a rush! Anyway, the idea is to use |
|
yo @mmndaniel check out #108 |
|
from the paper linked above: So I'm afraid single |
|
Here's another idea. So how about dropping innerHTML set attempts that specifically make use of these special problematic tags? For example, if the html contains a Just thinking out loud here, would that be effective? |
|
I don't think it's the way forward because it's possible to implement mutation attack without any "special" tags, just svg, style, etc are enough. See this PR, I suspect that's the right approach to address it. |
|
ending up with #123 |
An attempt to fix 91, using approach c which I mentioned here...