Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zebra allows access to internal configuration files #56

Open
powerriegel opened this issue Jun 5, 2024 · 0 comments
Open

Zebra allows access to internal configuration files #56

powerriegel opened this issue Jun 5, 2024 · 0 comments

Comments

@powerriegel
Copy link

powerriegel commented Jun 5, 2024

Zebra 2.2.2-1 on Debian Bullseye allows to access
DOMAIN:ZEBRAPORT/app/etc/local.xml

which contains password and user name in clear text.

<zs:explainResponse>
<zs:version>2.0</zs:version>
<zs:record>
<zs:recordSchema>http://explain.z3950.org/dtd/2.0/</zs:recordSchema>
<zs:recordXMLEscaping>xml</zs:recordXMLEscaping>
<zs:recordData>
<explain xml:base="../../zebradb/explain-biblios.xml">
<!--
 try stylesheet url: http://./?stylesheet=docpath/sru2.xsl 
-->
<serverInfo protocol="SRW/SRU/Z39.50">
<host>localhost</host>
<port>9999</port>
<!--
 <database numRecs="1314" lastUpdate="2006-03-15 09-05-33">
         Default</database> 
-->
<database>biblios</database>
<!--
<authentication>
      <user>xxxxxxxxxxx</user>
      <group>xxxxxxxxxxx</group>
      <password>xxxxxxxxxxxx</password>
    </authentication>
-->
</serverInfo>

If SRU is enabled, then the path would be DOMAIN/sru/etc/local.xml with the following standard Apache2 lines. This might be accessible world wide if you use SRU.

ProxyPass /sru/ http://localhost:ZEBRAPORT/
ProxyPassReverse /sru/ http://localhost:ZEBRAPORT/

We're using Zebra together with Koha 22.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant