nessus漏洞修复-------Apache Tomcat Default Files

1.删除Tomcat中webapp下所有,保留你自己项目和ROOT两个,然后删除ROOT下所有文件,新建一个文件404.html,至于这个404页面写啥东西无所谓了

2.在conf/web.xml中添加如下

<error-page>

        <error-code>404</error-code>

        <location>/404.html</location>

</error-page>

 

好了,保存一下,重新扫描发现这个漏洞没有了,


12085 - Apache Tomcat Default Files

Synopsis

The remote web server contains default files.

Description

The default error page, default index page, example JSPs, and/or example servlets are installed on the remote Apache Tomcat server. These files should be removed as they may help an attacker uncover information about the remote Tomcat install or host itself.

See Also

 
https://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q6
https://www.owasp.org/index.php/Securing_tomcat

Solution

Delete the default index page and remove the example JSP and servlets. Follow the Tomcat or OWASP instructions to replace or modify the default error page.

Risk Factor

Medium

CVSS v3.0 Base Score

7.3 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)

CVSS Base Score

6.8 (CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P)

References

  
XREFCWE:20
XREFCWE:74
XREFCWE:79
XREFCWE:442
XREFCWE:629
XREFCWE:711
XREFCWE:712
XREFCWE:722
XREFCWE:725
XREFCWE:750
XREFCWE:751
XREFCWE:800
XREFCWE:801
XREFCWE:809
XREFCWE:811
XREFCWE:864
XREFCWE:900
XREFCWE:928
XREFCWE:931
XREFCWE:990

Plugin Information: 

Published: 2004/03/02, Modified: 2018/01/30

Plugin Output

tcp/443


The following default files were found :

/nessus-check/default-404-error-page.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值