手记

应用程序加固Resin4篇

1 检查是否禁止目录列出

配置项目的web.xml中listings设置false,XML路径为:

web-app/servlet/init-param/param-name

web-app/servlet/init-param/param-value

2 检查是否自定义错误信息

将web.xml中,修改或配置节点,并配置400,401等异常返回页面。XML路径为:

web-app/error-page/error-code

3 检查是否删除文档和示例程序

将{resin_home}/doc/resin-doc目录删除,resin_home为resin安装目录

4 检查是否记录用户登录行为

在resin.xml配置新增,并配置access-log路径

XML路径:

resin/cluster-default/host-default/access-log

5 检查resin服务是否以resin用户运行

以普通用户运行resin服务

0人推荐
随时随地看视频
慕课网APP