Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
GICodeWarrior
11 months ago
|
parent
|
context
|
favorite
| on:
Paged Out #6 [pdf]
Simple JSON encoding alone is not sufficient if you put the output into a <script> tag.
<script>const user_input = "</script><script>alert(1)//"; ...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
<script>const user_input = "</script><script>alert(1)//"; ...