javax.servlet.jsp.JspTagException : Invalid JSP file %2e%2e/%2e%2e/%2e%2e/%2e%2e/system/autoexec. ncf

标签 java jsp

我们在 tomcat 6.0 中部署了一个 Web 应用程序,当我们请求 URL 时,我们在日志文件中收到以下错误。你能帮我找出错误

SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspTagException: Invalid JSP file     %2e%2e/%2e%2e/%2e%2e/%2e%2e/system/autoexec.ncf
    at examples.ShowSource.doEndTag(ShowSource.java:41)
    at org.apache.jsp.jsp.source_jsp._jspService(source_jsp.java:87)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)     

最佳答案

这与 this NetWare 6.0 specific expolit 相关.

112119 : Novell NetWare 6.0 Tomcat Source.jsp Traversal Arbitrary File Access

Risk 4 : Netware

The Apache Tomcat server distributed with NetWare 6.0 has a directory traversal vulnerability. As a result, sensitive information could be obtained from the NetWare server, such as the RCONSOLE password located in AUTOEXEC.NCF.

Example :

http://target/examples/jsp/source.jsp?%2e%2e/%2e%2e/%2e%2e/%2e%2e/system/autoexec.ncf

Solution:

Upgrade Tomcat to the latest version, or disable the service if it is not required. Remove default files from the web server. Also, ensure the RCONSOLE password is encrypted and utilize a password protected screensaver for console access.

References:

CVSS Information:

Low Attack Complexity, Complete Confidentiality Impact

Credit:

Tenable : 2009-12-04

修补您的服务器。

关于javax.servlet.jsp.JspTagException : Invalid JSP file %2e%2e/%2e%2e/%2e%2e/%2e%2e/system/autoexec. ncf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13291418/

相关文章:

java - "import *"在 Java 中如何工作?

javascript - FusionCharts 在 Internet Explorer 中渲染图表需要很长时间(Chrome 更快)

java - 设置来自 Java Servlet 的 http 请求的按钮颜色

java - 如何从 Jsp 页面按钮单击中使用 ServletContextListener 命中 servlet 类

java - 在单独的类 java 中操作组件

java - Android .iml 文件的 "jdkName"是如何由 `mfp build` 确定的

java - 浮点变量在没有明确归属的情况下被更改

Java for 循环空指针

java - 无法使用 EL 从 servlet 上下文获取 init 参数

java - 仅当条件满足时才显示表格的多列