Skip to content
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

Core: edit DOMPurify sanitization to allow external links #9757

Merged
merged 1 commit into from
May 15, 2024

Conversation

Garneauma
Copy link
Contributor

External links are safe to include in web pages given that they also have a rel attribute containing the value "noreferrer". See the following link for a more detailed explanation: https://owasp.org/www-community/attacks/Reverse_Tabnabbing

@Garneauma
Copy link
Contributor Author

Pre-approved upon successful review.

@Garneauma Garneauma requested a review from duboisp May 6, 2024 14:06
@Garneauma Garneauma added this to the v4.0.80 milestone May 6, 2024
Copy link
Member

@duboisp duboisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an error where it can allow invalid keywork, see the propose change.

There is also a few performance improvement suggestion.

src/core/dep/jquery-fix.js Outdated Show resolved Hide resolved
src/core/dep/jquery-fix.js Outdated Show resolved Hide resolved
src/core/dep/jquery-fix.js Outdated Show resolved Hide resolved
src/core/dep/jquery-fix.js Outdated Show resolved Hide resolved
src/core/test.js Outdated Show resolved Hide resolved
Copy link
Member

@duboisp duboisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested locally. Everything look fine.

Also, I noticed a little performance improvement of the data-ajax working example page compared to my yesterday test. I don't know if that is caused by your latest update or if that is caused by something else running on my test computer.

@duboisp duboisp merged commit 75da477 into wet-boew:master May 15, 2024
2 checks passed
@duboisp
Copy link
Member

duboisp commented May 15, 2024

Note:
This is a minor change about core and content sanitization feature which allow the possibility to open external links in new windows.

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

Successfully merging this pull request may close these issues.

None yet

2 participants