Community
    • Login

    Notepad++ v8.8.2 Release Candidate

    Scheduled Pinned Locked Moved Announcements
    21 Posts 5 Posters 3.8k 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.
    • xomxX
      xomx
      last edited by

      @donho

      IDK if it’s still true but I found an info that right now, Comodo is the only certauth that issues individual code signing certificates. The verification process conducted by Comodo requires you to provide three documents:

      1. Government-Issued Identification,
      2. Financial Documentation, and
      3. Non-Financial Documentation.

      More here.

      1 Reply Last reply Reply Quote 1
      • donhoD
        donho @donho
        last edited by

        FYI: 8.8.2 RC2, which switches the security mechanism from the certificate check to SHA256 check to make updater & plugin manager work, is available here:
        http://download.notepad-plus-plus.org/repository/8.x/8.8.2.RC2/

        PeterJonesP donhoD 2 Replies Last reply Reply Quote 4
        • PeterJonesP
          PeterJones @donho
          last edited by

          @donho said in Notepad++ v8.8.2 Release Candidate:

          FYI: 8.8.2 RC2, which switches the security mechanism from the certificate check to SHA256 check to make updater & plugin manager work, is available here:

          I can confirm that RC2 fixes the problem with Plugins Admin not showing up. Thanks!

          1 Reply Last reply Reply Quote 1
          • donhoD
            donho @donho
            last edited by donho

            @PeterJones @Snabel42

            Sorry, I guess I was not explicit enough: My explanation paragraph was trying to say that I can confirm your finding, and thus I gave my best guess as to why it’s not working.

            I confirm what Peter has said. For giving more detail: Plugin Admin can be visible under 2 conditions:

            1. PluginList component exits & checked by SecurityGuard of Notepad++
            2. WinGUp component exits & checked by SecurityGuard of Notepad++

            There are 2 methods for SecurityGuard to check components: by certificate or by SHA256.
            In RC2 the mechanism of SHA256 is activated, so Plugin Admin will work in RC2, which is available on above post.

            @xomx

            In such a case be prepared for an increase of AV false positives

            Yes, unfortunately we have to face to this situation.

            (which is unfortunate because it will also bring an increase of the risk of the app being compromised somehow (remember e.g. the CIA special ed…)).

            Back to the hack from CIA, Scintilla component was separated from Notepad++, and there was no verification at all while Notepad++ loading DLL of Scintilla.
            The 8.8.2 RC2 has not the same situation: SHA256 of components are checked before they are loaded:
            https://github.com/notepad-plus-plus/notepad-plus-plus/commit/999ec7a6c140f8f2b895ef27e48c0c978f6d621d

            So please do not trigger such a version for an auto-update!
            This opens a door e.g. for a MITM attack. Doublecheck especially the downloaded & updated plugins. If only one of the plugins’ dl-sites will get compromised…

            So far, all the Notepad++ releases with the code signing don’t check the certificate of downloaded installer before lauching it. But indeed, users cannot know if the downloaded installer is authentic. I’ll see what I can do about it.

            Did you consider the @Ekopalypse SignPath proposal?

            It could be a solution despite all the inconveniences… I’ll consider it if other solutions fail.

            IDK if it’s still true but I found an info that right now, Comodo is the only certauth that issues individual code signing certificates.

            Thank you for the link - I will check it.

            Snabel42S xomxX 2 Replies Last reply Reply Quote 3
            • Snabel42S
              Snabel42 @donho
              last edited by

              @donho said in Notepad++ v8.8.2 Release Candidate:

              In RC2 the mechanism of SHA256 is activated, so Plugin Admin will work in RC2, which is available on above post.

              Confirmed

              1 Reply Last reply Reply Quote 0
              • rddimR
                rddim
                last edited by

                Need more room for localization of Add new feature of using first line of untitled document for its tab name - https://github.com/notepad-plus-plus/notepad-plus-plus/commit/abc23714db987e699476f6b6a3af0fe44e0bc0a2#r159346955

                1 Reply Last reply Reply Quote 0
                • xomxX
                  xomx @donho
                  last edited by xomx

                  @donho said in Notepad++ v8.8.2 Release Candidate:

                  SHA256 of components are checked before they are loaded:

                  Then it’s ok, indeed.
                  Please correct me if I am wrong but it’s ok only until someone will not refresh the CIA idea to distribute (MITM or fake N++ installers) modified notepad++.exe & nppPluginList.dll files (now, without the certs preventing modification, it will be an easy target for a covert malicious use…)

                  1 Reply Last reply Reply Quote 0
                  • xomxX
                    xomx @donho
                    last edited by

                    @donho said in Notepad++ v8.8.2 Release Candidate:

                    1. Add feature to set read-only attribute on file so user can toggle (set/remove) read-only attribute of a file.

                    Just fixed one (probably long standing) related issue:

                    fix toggleReadOnlyFlagFromFileAttributes when invalid file attribute(s) or insufficient user rights #16733

                    (for STR just create with admin-rights e.g. C:\Program Files\test-RO.txt file and set its R/O-attribute, then open it as a non-admin in N++ and try to toggle (in older N++ use the “Clear Read-Only Flag” menu item) that read-only file attribute, then check it in Explorer or simply Alt-Tab from/to N++ and see that the tab R/O-state is back as the file read-only attribute removing failed due to insufficient rights…)

                    donhoD 1 Reply Last reply Reply Quote 1
                    • donhoD
                      donho @xomx
                      last edited by

                      @xomx

                      Just fixed one (probably long standing) related issue:

                      Merged into master now. Thank you.
                      I will add the warning message then update to the RC3.

                      Please correct me if I am wrong but it’s ok only until someone will not refresh the CIA idea to distribute (MITM or fake N++ installers) modified notepad++.exe & nppPluginList.dll files (now, without the certs preventing modification, it will be an easy target for a covert malicious use…)

                      You’re not wrong. But even with the code signing protection, people can still do code signing on their home-made Notepad++ installer to gain the trust. I admit it’s much harder though.

                      xomxX 1 Reply Last reply Reply Quote 1
                      • xomxX
                        xomx @donho
                        last edited by xomx

                        @donho said in Notepad++ v8.8.2 Release Candidate:

                        I will add the warning message

                        Ok.

                        Just FYI - I have in progress (so far so good, I’m already using it, it just needs to be tested more) a native N++ replacement for the deprecated NppSaveAsAdminPlugin. My concept used there will allow an easy addition of another N++ ops requiring the UAC-prompt elevation. That’s why I left this comment in my above fix when the SetFileAttributes failed - // probably the ERROR_ACCESS_DENIED (5) (TODO: UAC-prompt candidate).


                        One more thing - I don’t think I would be the only one here who would offer to share the costs of getting the new certificate so that you don’t have to finance it only yourself. Just say so if needed.

                        donhoD 1 Reply Last reply Reply Quote 5
                        • donhoD
                          donho @donho
                          last edited by

                          FYI, RC3, in which a bug of new feature “Read-only attribute in Windows” is fixed, is available now - you can download it from the 1st post.

                          1 Reply Last reply Reply Quote 1
                          • donhoD
                            donho @xomx
                            last edited by

                            @xomx

                            Just FYI - I have in progress (so far so good, I’m already using it, it just needs to be tested more) a native N++ replacement for the deprecated NppSaveAsAdminPlugin. My concept used there will allow an easy addition of another N++ ops requiring the UAC-prompt elevation.

                            So is it also a plugin or it’s a piece of code? It’ll be very helpful for saving, which is part of core functions in Notepad++. Though I consider toggling R/O file attribute flag as a helper not part of core functions, it’s still nice to have.

                            One more thing - I don’t think I would be the only one here who would offer to share the costs of getting the new certificate so that you don’t have to finance it only yourself. Just say so if needed.

                            Thank you! And thank you guys willing to contribute to the cost of the new certificate!
                            In fact, before leaving X, I tweeted about the certificate expiration issue, and DigiCert (I believe someone from their market team) has responded positively, offering a free of charge certificate.

                            Thanks to their generosity, I haven’t had to pay for a code signing certificate in the past 9 years:

                            f9e78267-a0d9-4d0d-b059-b67d4a8beab6-image.png

                            However, the validation process is another story. It’s not the first time the name “Notepad++” has been rejected - I do understand the validation team’s position. But every single time I have had to communicate, negotiate, beg or/and shout on Twitter to gain a certificate issued under the name “Notepad++”. This circle repeats every 3 years, and frankly, I’m getting tired of it.

                            So thank you again for your kind & noble offer. Even if I had to pay for the certificate, it’s not about the money - it’s about signing our code under the name “Notepad++”. I believe we at least deserve that much.

                            xomxX 1 Reply Last reply Reply Quote 2
                            • xomxX
                              xomx @donho
                              last edited by

                              @donho said in Notepad++ v8.8.2 Release Candidate:

                              So is it also a plugin or it’s a piece of code?

                              N++ own code.

                              I was starting to get tired of constantly checking the correct setup combinations for my N++ (backup snapshots ON/OFF vs N++ run as admin/non-admin, drag&drop for elevated vs non-elevated etc…) while editing system files etc.

                              I don’t like using that plugin not only because it messes with the FlushFileBuffers WINAPI, but also because it uses interprocess pipes and a custom unsigned external NppAdminAccess.exe app, which then manifests itself like this:
                              npp-UAC-NppSaveAsAdminPlugin.png

                              At first I was thinking about a new similar small but signed “npp-uac.exe” app, but then I thought - why not use the existing signed notepad++.exe for this! I will not pollute this thread more, but it is relatively simple PR and moreover it has the power to cover different N++ ops and not only the Save one as the NppSaveAsAdmin plugin (so e.g. adding a new #UAC-TOGGLE-R/O-ATTRIBUTE# should be then easy):
                              npp-UAC-native-PR.png

                              What you see above is Save-op N++ attempt, which is now in fact:

                              • detecting ERROR_ACCESS_DENIED while trying to open N++ output file for writing
                              • redirecting standard N++ output to a temp-location file (otherwise using the same file writing code as is now)
                              • requesting UAC-elevated op by calling the runas ShellExecuteEx on N++ with special params (will be handled later by slightly modified wWinMain)
                              • at the very start of wWinMain, the elevated N++ process detects it is a UAC-op request and not the usual N++ launching and does the requested op (in this case it will do a simple CopyFile temp2destination + DeleteFile(temp)) and immediately exits
                              1 Reply Last reply Reply Quote 2
                              • First post
                                Last post
                              The Community of users of the Notepad++ text editor.
                              Powered by NodeBB | Contributors