logo

Database

Solr Connection String

Description

The source code repository contains sensitive information: Solr Connection String

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches Solr Connection String patterns in source code and configuration files

Vulnerable code example

SOLR_URL=http://indexer:Wq8tZ3nV6kLp@solr.internal:8983/solr/products
HAYSTACK_CONNECTIONS = {'default': {'URL': 'https://app:R4ndomS3arch9x@search.example.com/solr/site'}}
solr:
  url: "https://admin:Kd7pQ2wN9xTv@search-01.example.com:8983/solr"
SOLR_HOST=http://drupal:Xn4vR8kT2qWm@solr:8983
$solr = new Solarium\Client(['endpoint' => ['url' => 'https://ro:Lp3wZ7nQ5tKv@mysolr.example.net/solr/core']]);