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

Eyedropper security #280

Merged
merged 3 commits into from
Oct 19, 2023
Merged

Eyedropper security #280

merged 3 commits into from
Oct 19, 2023

Conversation

kptdobe
Copy link
Contributor

@kptdobe kptdobe commented Oct 18, 2023

Fix #278 and #279

  • add JS execution warning (same as for import uis)
  • show icon svg as a background image (no JS execution in that case)
  • if icon svg, add a security risk warning Security risk: the logo you have selected is an SVG. It may contain malicious code (like Javascript code). You can download it but you should inspect it before using it.

Copy link
Collaborator

@catalan-adobe catalan-adobe left a comment

Choose a reason for hiding this comment

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

Tested locally, looks good to me!

I would add a "reset" of UI element LOGO_SVG_SECURITY_MSG, force hidding it when starting a new eyedrop (otherwise, if message got displayed in previous run, clicking the Eyedrop button will not remove it).

We could add

    LOGO_SVG_SECURITY_MSG.classList.add('hidden');

after line 222 in inspect.ui.js

@kptdobe kptdobe merged commit ce4d964 into main Oct 19, 2023
2 checks passed
@kptdobe kptdobe deleted the eyedropper-security branch October 19, 2023 09:24
github-actions bot pushed a commit that referenced this pull request Oct 19, 2023
# [1.47.0](v1.46.4...v1.47.0) (2023-10-19)

### Features

* eyedropper security ([#280](#280)) ([ce4d964](ce4d964))
@github-actions
Copy link

🎉 This PR is included in version 1.47.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Cross‐Site Scripting when Crawling and Importing in Helix Importer UI [AEM-07]
2 participants