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

new and interesting iframe validation exploits #460

Merged
merged 3 commits into from Jan 26, 2021
Merged

Conversation

boutell
Copy link
Member

@boutell boutell commented Jan 26, 2021

The WHATWG URL parser doesn't agree with browsers about these, so a regexp of our own is needed. Fortunately however they rely on behaviors regarding the protocol part of the URL which is the easiest part to clean before passing to WHATWG. Tests contributed by our friends at Checkmarx.

@boutell boutell requested a review from abea January 26, 2021 14:00
CHANGELOG.md Outdated
## 2.3.1 (2021-01-22):
- Uses the standard WHATWG URL parser to stop IDNA (Internationalized Domain Name) attacks on the iframe hostname validator. Thanks to Ron Masas of Checkmarx for pointing out the issue and suggesting the use of the WHATWG parser.
- Uses the standard WHATWG URL parser to stop IDNA (Internationalized Domain Name) attacks on the iframe hostname validator. Thanks to Ron Masas of <a href="https://www.checkmarx.com/">Checkmarx</a> for pointing out the issue and suggesting the use of the WHATWG parser.
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use markdown syntax: [Checkmarx](https://www.checkmarx.com)

CHANGELOG.md Outdated
@@ -1,7 +1,10 @@
# Changelog

## 2.3.2 (2021-01-26):
- Additional fixes for iframe validation exploits. Prevent exploits based on browsers' tolerance of the use of "\" rather than "/" and the presence of whitespace at this point in the URL. Thanks to Ron Masas of <a href="https://www.checkmarx.com/">Checkmarx</a> for pointing out the issue and writing unit tests.
Copy link
Contributor

Choose a reason for hiding this comment

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

Markdown syntax for the link here.

@abea
Copy link
Contributor

abea commented Jan 26, 2021

The code looks good.

@boutell boutell requested a review from abea January 26, 2021 20:32
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