Files
sweet/tests/fixture/routes/evil.tsx
T
OkadaGenya 9d13f6ff26 fix: sanitize <script> in __FRSH_STATE state (#739)
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.
2022-09-12 17:33:02 +02:00

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>
);
}