• Login
Community
  • Login

Why is it a security issue to load Notepad++ plugins from %APPDATA% folder?

Scheduled Pinned Locked Moved Security
3 Posts 3 Posters 6.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
    Prahlad-Makwana4145
    last edited by Aug 5, 2019, 4:35 AM

    Why is it a security issue to load Notepad++ plugins from %APPDATA% folder?

    1 Reply Last reply Reply Quote 0
    • G
      gstavi
      last edited by Aug 5, 2019, 7:05 AM

      Playing a security analyst:
      Lets assume a malicious user gained access to another computer in the network that allow him to copy files to the target machine via network sharing but not to execute arbitrary code on the target machine.
      Copying a crafted DLL as plugin into APPDATA only requires user permission while copying it to ProgramFiles requires admin permission.
      Once a user on the target machine launches Notepad++ the code within the DLL is executed.

      As a general rule of thumb you should try to keep all your executables and DLLs in directories that are only writables to admins.

      1 Reply Last reply Reply Quote 5
      • S
        scaryboohoo
        last edited by Aug 11, 2019, 1:11 PM

        I really hope, that you are just “playin” a security analyst.

        Access via network sharing requiers administrative rights so the person could copy the directly to ProgramFiles folder and the user is helpless.

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors