Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    SquidGuard: Config files executable?

    Scheduled Pinned Locked Moved Cache/Proxy
    5 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      piwwo
      last edited by

      Hello. Just a quick question: Why are the configuration files of SquidGuard executable (for everyone) and couldn't this be a security issue?

      
      ls -la /usr/local/etc/squidGuard/
      total 30
      drwxr-xr-x   2 squid  squid   512 Jul 29 16:22 .
      drwxr-xr-x  27 root   wheel  2048 Jul 28 17:27 ..
      -rwxr-xr-x   1 squid  squid  1383 Jul 29 16:19 blacklist.files
      -rwxr-xr-x   1 squid  squid  8597 Jul 29 16:31 squidGuard.conf
      -rwxr-xr-x   1 squid  squid   455 Jul 29 14:58 squidGuard__usrdbrebuild.conf
      -rwxr-xr-x   1 squid  squid  8159 Jul 29 16:19 squidGuard_blk_rebuild.conf
      -rwxr-xr-x   1 squid  squid  2484 Aug  4 10:20 squidguard_conf.xml
      
      1 Reply Last reply
      Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        They aren't actually scripts so that isn't really a security issue, but it isn't necessary. Most likely something in the package code is doing a chmod on them with unnecessary permissions.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply
        Reply Quote 0
        • P
          piwwo
          last edited by

          Well it could become a security issue, if someone manages somehow to get code into one of the files.

          1 Reply Last reply
          Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            It would also have to have the right shabang at the start of the file, which I don't see happening.

            Looking at the code, it seems to blindly set 0755 permissions everywhere, though I don't immediately see a good reason for it to do so. It should probably be using 0644 instead, but that is something that will need some testing before putting it in the package.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply
            Reply Quote 0
            • P
              piwwo
              last edited by

              Yeah I just felt uneasy seeing that. I believe nothing has to have +x except for those that need to be executed. Everything else should be only readable for those that need to read it.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy