You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say the initial state is {"foo":"some string"}, you're fine, but if it's is {"foo":"</script><script>alert('xss')</script><script>"} then you're screwed.
Not an issue if you're sure it's an integer, but I've seen people use this exact pattern in other places where it could cause serious issues, so best to get it right in a common point of reference.
A simple solution is to escape the <s, but not sure if there's a better way to do it.
Say the initial state is
{"foo":"some string"}
, you're fine, but if it's is{"foo":"</script><script>alert('xss')</script><script>"}
then you're screwed.Not an issue if you're sure it's an integer, but I've seen people use this exact pattern in other places where it could cause serious issues, so best to get it right in a common point of reference.
A simple solution is to escape the
<
s, but not sure if there's a better way to do it.The text was updated successfully, but these errors were encountered: