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

[13.3.x] fix(core): hardening attribute and property binding rules for <iframe> elements #48029

Closed

Conversation

AndrewKushnir
Copy link
Contributor

This commit updates the logic related to the attribute and property binding rules for <iframe> elements. There is a set of <iframe> attributes that may affect the behavior of an iframe and this change enforces that these attributes are only applied as static attributes, making sure that they are taken into account while creating an <iframe>.

If Angular detects that some of the security-sensitive attributes are applied as an attribute or property binding, it throws an error message, which contains the name of an attribute that is causing the problem and the name of a Component where an iframe is located.

BREAKING CHANGE:

Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.

PR Type

What kind of change does this PR introduce?

  • Bugfix

@AndrewKushnir AndrewKushnir added area: core Issues related to the framework runtime target: lts This PR is targeting a version currently in long-term support PullApprove: disable labels Nov 11, 2022
@ngbot ngbot bot modified the milestone: Backlog Nov 11, 2022
@AndrewKushnir AndrewKushnir changed the title fix(core): hardening attribute and property binding rules for <iframe> elements [13.3.x] fix(core): hardening attribute and property binding rules for <iframe> elements Nov 11, 2022
@AndrewKushnir AndrewKushnir force-pushed the backport_47964_to_13_3_x branch 2 times, most recently from 61575df to 0ebb493 Compare November 12, 2022 01:10
@AndrewKushnir AndrewKushnir marked this pull request as ready for review November 12, 2022 05:17
…> elements

This commit updates the logic related to the attribute and property binding rules for <iframe> elements. There is a set of <iframe> attributes that may affect the behavior of an iframe and this change enforces that these attributes are only applied as static attributes, making sure that they are taken into account while creating an <iframe>.

If Angular detects that some of the security-sensitive attributes are applied as an attribute or property binding, it throws an error message, which contains the name of an attribute that is causing the problem and the name of a Component where an iframe is located.

BREAKING CHANGE:

Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.
@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Nov 14, 2022
@AndrewKushnir
Copy link
Contributor Author

Caretaker note: this PR does not require any presubmits, since this is an LTS-only PR.

@AndrewKushnir AndrewKushnir removed the action: merge The PR is ready for merge by the caretaker label Nov 14, 2022
@josephperrott josephperrott added detected: breaking change PR contains a commit with a breaking change and removed flag: breaking change labels Nov 14, 2022
@dylhunn dylhunn added the action: merge The PR is ready for merge by the caretaker label Nov 21, 2022
@dylhunn
Copy link
Contributor

dylhunn commented Nov 21, 2022

This PR was merged into the repository by commit 4ea399a.

@dylhunn dylhunn closed this Nov 21, 2022
dylhunn pushed a commit that referenced this pull request Nov 21, 2022
…> elements (#48029)

This commit updates the logic related to the attribute and property binding rules for <iframe> elements. There is a set of <iframe> attributes that may affect the behavior of an iframe and this change enforces that these attributes are only applied as static attributes, making sure that they are taken into account while creating an <iframe>.

If Angular detects that some of the security-sensitive attributes are applied as an attribute or property binding, it throws an error message, which contains the name of an attribute that is causing the problem and the name of a Component where an iframe is located.

BREAKING CHANGE:

Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.

PR Close #48029
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime detected: breaking change PR contains a commit with a breaking change merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable target: lts This PR is targeting a version currently in long-term support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants