Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

HTML injection

Avatar

Level 4

Hi ,

May I know how to prevent injecting HTML? I am using AEM 6.2.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

 

Usually html injection can happen by either url or user input data. We need to check for the html tags and encode them to make sure they are consider as string instead of html tags.

 

Take a look at below link for additional details

 

https://www.softwaretestinghelp.com/html-injection-tutorial/

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi,

 

Usually html injection can happen by either url or user input data. We need to check for the html tags and encode them to make sure they are consider as string instead of html tags.

 

Take a look at below link for additional details

 

https://www.softwaretestinghelp.com/html-injection-tutorial/

Avatar

Employee Advisor

Apply the latest hotfix and use the Adobe recommended security configs: https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/security-checkl...

 

Lastly, AEM 6.2 has been out of support for a long time and the best option will be to move to 6.5 Or AEM Cloud.

Avatar

Level 4
Hi jbrar, I understand AEM6.2 is out of support and we are planning to upgrade. But, as this is very important security, we need to prevent this. May I know how to resolve this?