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

Tighten down ZMI frame source logic to only allow site-local sources [4.x] #1160

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

mauritsvanrees
Copy link
Member

Backport to 4.x of PR #1151 and #1152.

…ces.

Do the logic in new method `getZMIMainFrameTarget`.
Do not accept a 'tainted' came_from parameter.
Do not accept a came_from path-only url starting with '//' either.
Browsers can interpret the rest of the path as a domain.
Copy link
Member

@icemac icemac left a comment

Choose a reason for hiding this comment

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

LGTM.

@icemac
Copy link
Member

icemac commented Sep 20, 2023

Do you need a new release soon?

@mauritsvanrees
Copy link
Member Author

Yes, a new release of 4.x and master soon would be good, if it includes the security fix that is ready.

@mauritsvanrees mauritsvanrees merged commit a0aa2ff into 4.x Sep 20, 2023
16 checks passed
@mauritsvanrees mauritsvanrees deleted the maurits-harden-zmi-frame-4x branch September 20, 2023 08:07
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.

3 participants