安装安全修补程序后,在AEM 6.5中验证是否删除或升级Handlebars.js 4.7.7

应用安全修补程序后,Adobe Experience Manager (AEM) 6.5内部部署安全扫描可能会继续检测Handlebars.js 4.7.7,包括在非运行时或备份位置进行检测。 要解决此问题,请验证运行时包和客户端库位置中的Handlebars.js版本,并确认运行时实施使用4.7.9而不是4.7.7。

描述 description

环境

Adobe Experience Manager (AEM) 6.5内部部署(所有Service Pack)

问题/症状

为Handlebars.js漏洞应用安全修补程序后,您需要确认Handlebars.js 4.7.7在运行时环境(包括运行时捆绑包和客户端库位置)中不再存在或不再使用。

根本原因

AEM 6.5的安全修补程序将所有运行时Handlebars.js实施升级到4.7.9以修复一个已知漏洞。 扫描程序工具仍可在非运行时或备份位置报告较旧的版本,但这些版本不会影响正在运行的系统。

解决方法 resolution

请按照以下步骤解决问题:

  1. 确认已将Handlebars.js的安全修补程序应用于AEM 6.5内部部署环境。

    1. 检查运行时包:
    2. 转到AEM安装目录并找到运行时包,例如,在/crx-quickstart/launchpad/felix/中。
    3. 识别Handlebars运行时捆绑包,通常名为com.github.jknack.handlebars或类似名称。
    4. 检查此捆绑包中嵌入的Handlebars.js版本,并确认其为4.7.9。
    5. 确保4.7.7不再在任何活动的运行时包中存在或引用。
  2. 检查Handlebars.js版本的以下客户端库位置:

    • /libs/clientlibs/social/thirdparty/handlebars/source/handlebars.js
    • /libs/granite/ui/components/foundation/form/formbuilder/clientlibs/js/handlebars.js
    • /libs/clientlibs/granite/coralui2/optional/clientlibs/source/handlebars-v4.7.7.min.js
    • /libs/dam/gui/coral/components/admin/schemaforms/formbuilder/handlebars/clientlibs/js/handlebars.js
    • /libs/tsdk/handlebars/js/handlebars.js
    • /libs/granite/contexthub/dependencies/handlebars/handlebars-v4.7.3.min.js
  3. 确认所有运行时客户端库现在都引用Handlebars 4.7.9,而不是4.7.7。

  4. 忽略安装介质、备份目录或非运行时文件中的扫描仪检测,因为这些检测不会影响正在运行的环境。

  5. 完成这些检查后,确认运行时不再存在或使用易受攻击的Handlebars.js 4.7.7库。

recommendation-more-help
experience-cloud-kcs-help-kbarticles