10045-1Source Code Disclosure - /WEB-INF Folder

PUBLISHEDsecurity alertHigh
Active

Metadata

Alert ID:
10045-1
Risk:
High
Type:
Active

摘要

Java source code was disclosed by the web server in Java class files in the WEB-INF folder. The class files can be dis-assembled to produce source code which very closely matches the original source code.

解决方案

The web server should be configured to not serve the /WEB-INF folder or its contents to web browsers, since it contains sensitive information such as compiled Java source code and properties files which may contain credentials. Java classes deployed with the application should be obfuscated, as an additional layer of defence in a "defence-in-depth" approach.

其他信息

class A { }

参考