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

Allow style tag iframe in post content #2611

Merged
merged 3 commits into from
Apr 12, 2024
Merged

Conversation

brianhogg
Copy link
Contributor

@brianhogg brianhogg commented Mar 5, 2024

Description

Allow style attributes to be included in iframe tags. From what I can see this should be fine, but would like a second take on any security implications of this that I might have missed.

Fixes #2610

How has this been tested?

Manually

Checklist:

  • This PR requires and contains at least one changelog file.
  • My code has been tested.
  • My code passes all existing automated tests.
  • My code follows the LifterLMS Coding & Documentation Standards.

…e restricted to certain llms elements rather than all post models.
@brianhogg brianhogg requested a review from ideadude as a code owner March 5, 2024 10:58
@ideadude
Copy link
Member

I think this is fine.

Technically, the style tag can be used to push the iframe out to cover the whole screen, which could allow that iframe to mimic the site in a dangerous way. But the danger here is in adding the iframe in the first place and setting the src attribute to something untrusted that would abuse that.

We want course builders to be able to embed and even style iframes within their courses.

@ideadude ideadude merged commit 0c00848 into dev Apr 12, 2024
31 of 32 checks passed
@ideadude ideadude deleted the fix/2610-allow-style-tag-iframe branch April 12, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants