logo

Database

Solr Password

Description

The source code repository contains sensitive information: Solr Password

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches Solr Password patterns in source code and configuration files

Vulnerable code example

SOLR_AUTH_TYPE="basic"
SOLR_AUTHENTICATION_OPTS="-Dbasicauth=solr:Kx7mPq2Lw9zR"
SOLR_AUTHENTICATION_OPTS="-Dsolr.security.auth.basicauth.credentials=admin:Vb5nT8qR2mXw"
bin/solr auth enable --type basicAuth --credentials admin:Hy6tW3pK9sQd --block-unknown true
curl --user solr:Jm4xR8vT2nQz http://localhost:8983/solr/admin/collections?action=LIST
curl http://localhost:8983/solr/admin/info/system -u admin:Tq7nW2xK5pRv
# solr client credentials, see -Dsolr.httpclient.config
httpBasicAuthUser=indexer...