5 ms·
I'm curious what the vulnerability is? Also not clear what the null character is. Any links I can follow? And again, if this is your line in the sand, how do
by taeric 4y ago
I'm curious what the vulnerability is? Also not clear what the null character is. Any links I can follow?
And again, if this is your line in the sand, how do you serialize NaN and Infinity in JSON?
Edit: Playing with this a bit, I'd actually assume that allowing \0 would be a vulnerability. I was curious how browsers treat it, so I see that parsing to an html document seems to just drop the characters? Fun little rabbit hole to jump in!
- slaymaker1907 4y agoYeah, that's why I consider it to be a breeding ground for vulnerabilities. People will probably just assume the XML serializer can handle any strings in their language of choice and not handle those edge cases. What I ended up doing for my use case was to encode nulls as "