-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add directory listing WEBLOGIC, WEBSPHERE and JETTY support
- Loading branch information
Showing
7 changed files
with
137 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...t-iast/src/test/resources/application/directorylistingleak/insecure/jetty/WEB-INF/web.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://java.sun.com/xml/ns/javaee" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | ||
id="WebApp_ID" version="3.0"> | ||
<servlet> | ||
<servlet-name>default</servlet-name> | ||
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> | ||
<init-param> | ||
<param-name>resourceBase</param-name> | ||
<param-value>/path/to/your/static/files</param-value> | ||
</init-param> | ||
<init-param> | ||
<param-name>dirAllowed</param-name> | ||
<param-value>true</param-value> | ||
</init-param> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>default</servlet-name> | ||
<url-pattern>/*</url-pattern> | ||
</servlet-mapping> | ||
</web-app> |
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
...rc/test/resources/application/directorylistingleak/insecure/weblogic/WEB-INF/weblogic.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"> | ||
<container-descriptor> | ||
<prefer-web-inf-classes>false</prefer-web-inf-classes> | ||
<prefer-application-packages> | ||
<package-name>javax.faces.*</package-name> | ||
<package-name>com.sun.faces.*</package-name> | ||
<package-name>com.bea.faces.*</package-name> | ||
</prefer-application-packages> | ||
|
||
<prefer-application-resources> | ||
<resource-name>javax.faces.*</resource-name> | ||
<resource-name>com.sun.faces.*</resource-name> | ||
<resource-name>com.bea.faces.*</resource-name> | ||
<resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</resource-name> | ||
</prefer-application-resources> | ||
<index-directory-enabled>true</index-directory-enabled> | ||
</container-descriptor> | ||
</weblogic-web-app> |
1 change: 1 addition & 0 deletions
1
...resources/application/directorylistingleak/insecure/websphere/xmi/WEB-INF/ibm-web-ext.xmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
directoryBrowsingEnabled="true" |
15 changes: 15 additions & 0 deletions
15
...resources/application/directorylistingleak/insecure/websphere/xml/WEB-INF/ibm-web-ext.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-ext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://websphere.ibm.com/xml/ns/javaee" | ||
xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd" version="1.0"> | ||
<jsp-attribute name="reloadEnabled" value="true"/> | ||
<jsp-attribute name="reloadInterval" value="10"/> | ||
|
||
<reload-interval value="3"/> | ||
<enable-reloading value="true"/> | ||
<enable-file-serving value="false"/> | ||
<enable-directory-browsing value="true"/> | ||
<enable-serving-servlets-by-class-name value="true" /> | ||
<pre-compile-jsps value="false"/> | ||
<auto-encode-requests value="false"/> | ||
<auto-encode-responses value="false"/> | ||
</web-ext> |