-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rest(xss): Prevent stored XSS #2833
Conversation
b450b74
to
2718dd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change, rest looks good.
As discussed, please open relevant issue in frontend project. |
Signed-off-by: Smruti Prakash Sahoo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
This PR is to sanitize JSON and request parameters, headers containing potential malicious texts such as
<img/src/onerror = alert(1)>
and store it as<img/src/onerror=alert(1)>
in database.Issue:
Suggest Reviewer
@GMishx @heliocastro @hoangnt2
How To Test?
Checklist
Must: