Information Security Asked on November 16, 2021
I am passing value from input filled directly into a script function inside a JSON object. I was thinking, is it possible that this input can escape this object and can lead to XSS or something.
<script>
...
function doSomething(item) {
data = {'content':item}
}
...
</script>
<input id="search" type="text" value="" oninput="doSomething(this.value)"/>
1 Asked on August 4, 2020 by user23013
1 Asked on July 29, 2020 by happyface
1 Asked on July 22, 2020 by ultra-gamer
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP