我正在研究如何将AntiSamy与CQ5集成。到目前为止,我的步骤是:
/libs/cq/xssprotection/config.xml上的文件,该路径定义了AntiSamy的配置。installed状态(而不是active)。- [AntiSamy v1.4.5\_1](http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.antisamy/1.4.5_1)
- [Commons BeanUtils v1.8.3\_2](http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-beanutils/1.8.3_2)
- [Commons Configuration v1.4\_4](http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-configuration/1.4_4)
- [Xerces v2.11.0\_1](http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.11.0_1)
- [XML Resolver v1.2\_1](http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_1)
我的问题:
发布于 2014-07-22 08:13:37
AntiSamy库嵌入到cq-xssprotection包中,并由其服务使用,版本为5.5版本,也包括5.6版本。这个jar的反编译证明了如果它是覆盖的话,它们使用来自/libs或/apps的/apps配置。
我的cq实例已经包含了cq- has保护包。如果你没有打开盒子,你可以尝试从这个adobe存储库链接下载它。
与问题3有关的信息:我读过这个主题adobe论坛链接,我可以用XSSAPI来解决我应该编写java代码的问题。
如何编写这段代码?
我找到了这个xss备忘单
更新
包pom.xml片段:
...
<name>Day Communique 5 XSS Protection</name>
<description>
CQ5 platform bundle for providing XSS protection using the AntiSamy library.
</description>
...
<dependencies>
<dependency>
<groupId>org.owasp</groupId>
<artifactId>antisamy</artifactId>
<version>1.4</version>
</dependency>
...https://stackoverflow.com/questions/24861088
复制相似问题