HISE Logo Forum
    • Categories
    • Register
    • Login

    Do I need to install xcpretty to work with HISE on MacOS?

    Scheduled Pinned Locked Moved General Questions
    8 Posts 4 Posters 405 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.
    • I
      IsaacToast
      last edited by

      Hi all,

      How necessary is xcpretty for working with HISE on macOS?

      The reason I ask is because the Dependabot and Code Scanning tools on Github list several security issues with it. (You can Fork the code and set them up under Security in Github to see them.)

      These are the Dependabot issues:

      Dependency Confusion in Bundler High Development
      #1 opened 12 minutes ago • Detected in bundler (RubyGems) • xcpretty.gemspec

      Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile. Moderate Development
      #2 opened 12 minutes ago • Detected in bundler (RubyGems) • xcpretty.gemspec

      RuboCop gem Insecure use of /tmp Low Development
      #3 opened 12 minutes ago • Detected in rubocop (RubyGems) • xcpretty.gemspec

      And these are the Code Scanning Issues:

      Inefficient regular expression
      High
      #10 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/parser.rb:58
      master

      Inefficient regular expression
      High
      #9 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/parser.rb:58
      master

      Polynomial regular expression used on uncontrolled data
      High
      #8 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/parser.rb:481
      master

      Polynomial regular expression used on uncontrolled data
      High
      #7 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/parser.rb:462
      master

      Polynomial regular expression used on uncontrolled data
      High
      #6 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/parser.rb:459
      master

      Polynomial regular expression used on uncontrolled data
      High
      #5 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/parser.rb:433
      master

      Polynomial regular expression used on uncontrolled data
      High
      #4 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/parser.rb:316
      master

      Polynomial regular expression used on uncontrolled data
      High
      #3 opened 12 minutes ago • Detected by CodeQL in lib/.../reporters/json_compilation_databas...:37
      master

      Polynomial regular expression used on uncontrolled data
      High
      #2 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/ansi.rb:61
      master

      Polynomial regular expression used on uncontrolled data
      High
      #1 opened 12 minutes ago • Detected by CodeQL in lib/xcpretty/ansi.rb:51

      TBH I don’t really know what those warnings mean but they have High severity warnings so they look scary.

      So, can I get away without using xcpretty?

      Thanks!

      Isaac Toast
      https://isaactoast.live
      music for your inner movie soundtrack

      d.healeyD 1 Reply Last reply Reply Quote 1
      • clevername27C
        clevername27
        last edited by

        Good question.

        I 1 Reply Last reply Reply Quote 0
        • I
          IsaacToast @clevername27
          last edited by

          @clevername27 yeah, also looks abandoned more or less. See:
          https://github.com/xcpretty/xcpretty/issues/360

          Isaac Toast
          https://isaactoast.live
          music for your inner movie soundtrack

          1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @IsaacToast
            last edited by

            @IsaacToast said in Do I need to install xcpretty to work with HISE on MacOS?:

            How necessary is xcpretty for working with HISE on macOS?

            Try it and report back.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @d.healey
              last edited by

              xcpretty is just used to pipe the super verbose build output into something more readable and provides no further functionality at all.

              This being said I don‘t care too much about those security warnings - if I was writing a software that does online banking I would make sure that there are no issues like this but a potential buffer overflow in a console text processor will not cause any harm and I can see no scenario where this could become even remotely concerning.

              I 1 Reply Last reply Reply Quote 1
              • I
                IsaacToast @Christoph Hart
                last edited by

                Ah, good to know @Christoph-Hart, Thanks..

                In that case, I might give it a whirl like you suggest @d-healey.

                This being said I don‘t care too much about those security warnings - if I was writing a software that does online banking I would make sure that there are no issues like this but a potential buffer overflow in a console text processor will not cause any harm and I can see no scenario where this could become even remotely concerning.

                My concern is that while HISE is not an online banking app, it is still going to be run on the same machines that many people do their online banking on. And if there are known vulnerabilities that can be exploited, there are likely hackers out there trying to exploit them, no?

                Of course, I may just be being paranoid out of ignorance. I only know enough to know that supply chain attacks like the one on xz utils are real, but not enough to know how they work. I suppose most attackers might tend to focus on web apps on servers because they aren’t sitting behind multiple layers of NAT, firewalls, etc like desktop clients. So, maybe you are right that a single vulnerability in a console text parser isn’t a big deal.

                On the other hand, there may be scenarios one cannot foresee.
                For example. multiple small vulnerabilities can be used to create bigger ones when exploited in combination. See:
                https://arstechnica.com/information-technology/2021/03/expert-hackers-used-11-zerodays-to-infect-windows-ios-and-android-users/ That one relied on zero-days to break into fully patched end user devices. I imagine it would be even easier to exploit known vulnerabilities that have gone unpatched.

                I guess in the end I am just trying to make the case for maybe not shrugging off warnings and using the GitHub tools to mitigate any potential security issues.

                Food for thought anyway.

                Isaac Toast
                https://isaactoast.live
                music for your inner movie soundtrack

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @IsaacToast
                  last edited by

                  @IsaacToast said in Do I need to install xcpretty to work with HISE on MacOS?:

                  I only know enough to know that supply chain attacks

                  A supply chain attack doesn't happen with software that's not being updated.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  I 1 Reply Last reply Reply Quote 0
                  • I
                    IsaacToast @d.healey
                    last edited by

                    @d-healey Good point! Of course, that doesn’t negate the fact that it has multiple known vulns already.

                    Isaac Toast
                    https://isaactoast.live
                    music for your inner movie soundtrack

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    32

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.3k

                    Posts