adobe / adobe/aem-core-email-components

Content Fragment Editor - Links with Personalization token gets removed due to Antisamy protection rules

Open
#245 4 comments 0 reactions 0 assignees View on GitHub
done
Dominant language
Java
Stars
16
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce
1. Create a new Content Fragment
2. Use Link Plugin to author a hyperlink containing personalization token. For example: <%= targetData.viewInBrowserLink %>
3. Save CF.
4. The Content Fragment gets saved as expected. We can also see the crx/de that the markup for CF shows the tag with personalization token in href.
5. Re-edit the fragment.
6. Notice that the link is completely removed by CF Editor.

We checked the logs and we see messages indicating that the links were removed due to XSS/Antisamy protection.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Content Fragment Editor steps and reviewing the XSS/Antisamy log messages described in the issue. Trace how the Link Plugin content is processed when the fragment is re-edited; done means a hyperlink containing the personalization token remains present after saving and reopening the fragment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
content, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.