This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello! I have a Web Application built with Python Flask as the backend. I want to sanitize my inputs for JSON data before returning to the frontend.
So my question is: What should be sanitized? Biggest concern is XSS attacks, so would it be sufficient enough to only sanitize <script></script>
tags? i.e. replace <script>
with <script>
... Is there any other point of attack when it comes to HTML within the response? I currently have it replacing the script tags with regex but if you have a better suggestion for best practices I'm all ears!
Thanks in advance!~
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/AskNetsec/c...