Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Fix for the Cross-site Scripting (XSS) Vulnerability #1

Merged
merged 4 commits into from
Feb 14, 2020
Merged

Fix for the Cross-site Scripting (XSS) Vulnerability #1

merged 4 commits into from
Feb 14, 2020

Conversation

mufeedvh
Copy link

@mufeedvh mufeedvh commented Feb 3, 2020

As a blog post contain images and other elements, we need to allow HTML input but prevent JavaScript code to execute/XSS attacks. So, I used DOMPurify to accept HTML but no JavaScript thus fixing the XSS vulnerability.

Fixed XSS on three endpoints:

  • Published Post (main issue)
  • Post Preview - Extra Bonus Fix ;)
  • Posts List - Extra Bonus Fix ;)

Fixed! 👍

@JamieSlome
Copy link

Congratulations @mufeedvh - you are the successful huntr! Thank you for submitting your fix - we have approved your pull request and will merge your commits into our master branch.

If you have any questions, please respond in the comments section. Your bounty is on its way - keep hunting.

@JamieSlome JamieSlome merged commit 3078636 into 418sec:master Feb 14, 2020
@mufeedvh
Copy link
Author

Thank You @JamieSlome ✌️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants