1. 46
  1.  

    1. 13

      for those wondering, in total i got 5k for this vuln, which i dont blame todesktop for because theyre a really small company

      update: cursor (one of the affected customers) is giving me 50k USD for my efforts.

      man it’s nice to read one of these that doesn’t end with “and the bounty was rejected on a technicality”

      1. 2

        i wanted to get on the machine where the application gets built and the easiest way to do this would be a postinstall script in package.json, so i did that with a simple reverse shell payload

        Forgive my ignorance, but to clarify the exploit:

        1. Build an electron app and build with todesktop
        2. Install a postinstall script that reverse shells?
        3. ??? (Obviously, connect to reverse shell)
        4. Profit!!

        So, the vuln is that todesktop mounted everything into the build container with no separation. Correct? The wording here glosses over this very important part. :)

        1. 2

          From my understanding of the post, step 3 is extract the “config.json.encrypted” file from the container, decrypt it using the credentials found, then use the Firebase credentials that were decrypted to push an update to other users applications.

          1. 2

            That was specified once they got a shell. The question that I had was how actually did they get the shell? They mention postinstall and a reverse shell. My assumption is that when you used todesktop, it’s a CI like build tool so a postinstall script runs in their container, and that gave them the ability to reverse shell out (for some time before the build was killed, presumably) to get the encrypted file, decrypt it, profit.

            I think that’s logical, but trying to “check my work.”

            1. 1

              Yeah, I think that’s the conclusion I come to, some npm post-install script in a dependency, makes a reverse shell, and keeps the build “running”.

        2. 2

          another firebase banger

          another firebase banger by eva from ssi