This commit escapes `<` `>` and related characters in the serialized state that is encoded into the `<script id=__FRSH_STATE>` tag. This prevents XSS attack occuring through injection of a `</script>` string in island props.
10 lines
184 B
TypeScript
10 lines
184 B
TypeScript
import Test from "../islands/Test.tsx";
|
|
|
|
export default function EvilPage() {
|
|
return (
|
|
<div>
|
|
<Test message={`</script><script>alert('test')</script>`} />
|
|
</div>
|
|
);
|
|
}
|