Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sanitize URL well #3

Merged
merged 1 commit into from
Mar 3, 2018
Merged

Sanitize URL well #3

merged 1 commit into from
Mar 3, 2018

Conversation

joker314
Copy link
Contributor

@joker314 joker314 commented Mar 3, 2018

This is a security update and I highly urge you to update your code immediately to stay secure.

This fixes the following security issues

  • XSS

These issues may have a "High" impact if the markdown parser is used in a chatroom system that accepts user input; and user accounts are enforced.

This update also includes a new method, mrk.sanitizeURL(url), which should be used for all src and href attributes. You must use this together with the existing HTML sanitizer.

This pull request has not been tested.

This is a security update and I highly urge you to update your code immediately to stay secure.

This fixes the following security issues
 - XSS

These issue may have a "High" impact as they may compromise the confidentiality, availability, and integrity of servers to the victim.

This update also includes a new method, `mrk.sanitizeURL(url)`, which should be used for all `src` and `href` attributes. You must use this **together with** the existing HTML sanitizer.

This pull request has not been tested.
@joker314
Copy link
Contributor Author

joker314 commented Mar 3, 2018

I have verified this locally, it looks good to me

@towerofnix
Copy link
Contributor

(ping @heyitsmeuralex)

@joker314 I don't have push permission to this repository :P

@joker314
Copy link
Contributor Author

joker314 commented Mar 3, 2018

Will fixing this here automatically fix it in Decent; or did you make a seperate copy of mrk in the decent repo? @towerofnix

@bates64 bates64 merged commit e9389f8 into bates64:master Mar 3, 2018
@bates64
Copy link
Owner

bates64 commented Mar 3, 2018

I'll publish a new version as soon as I get home.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants