Named pipes have been in Windows for many years https://docs.microsoft.com/en-us/windows/win32/api/winbase/n...
First thing I do with SQL Server setups - turn off named pipes :)
Named Pipes in .NET 6 with Tray Icon and Service
11–20 of 54 posts
Re: Named Pipes in .NET 6 with Tray Icon and Service
#12I don't know why I expected something more technical for the tray icon part. I mean using a third party library is not really anything .NET 6 specific.
Re: Named Pipes in .NET 6 with Tray Icon and Service
#13NamedPipes are sweet for doing same-machine IPC on Windows, that is for sure, but the built-in API is full of footguns.
Re: Named Pipes in .NET 6 with Tray Icon and Service
#14Named pipes have been in Windows for many years https://docs.microsoft.com/en-us/windows/win32/api/winbase/n...
Re: Named Pipes in .NET 6 with Tray Icon and Service
#15Re: Named Pipes in .NET 6 with Tray Icon and Service
#16Earlier quoted context omitted.
First thing I do with SQL Server setups - turn off named pipes :)
Is there a reason you do this? Curious, I havent had to setup SQL Server myself in a while so I don't know what a reasonable reason would be.
Re: Named Pipes in .NET 6 with Tray Icon and Service
#17Consider that if a user-mode application can send messages to a privileged process (like a Windows service).
What prevents any user-mode application from doing that? And if your Windows service is running as "NT_AUTHORITY/SYSTEM" and even executes privileged commands, well you might find you've got a simple privilege escalation vuln.
Remember, secure your named pipes...especially when the named pipe server runs as SYSTEM.
- https://stackoverflow.com/a/59983266
- https://versprite.com/blog/security-research/vulnerable-name...
Re: Named Pipes in .NET 6 with Tray Icon and Service
#18Named pipes have been in Windows for many years https://docs.microsoft.com/en-us/windows/win32/api/winbase/n...
Re: Named Pipes in .NET 6 with Tray Icon and Service
#19Earlier quoted context omitted.
Pretty sure there isn't anything you can't do in Jetbrains Rider EAP. Edit: would like to know why I'm being downvoted.
Hot reload in Rider only works in debug mode on Windows (to be clear it also works in nondebug sessions on Windows). On Mac trying to use Hot Reload with Rider on a nondebug session errors out, so it’s not 100% yet.
Re: Named Pipes in .NET 6 with Tray Icon and Service
#20Good article, but I wish the author would've addressed securing these named pipes. Consider that if a user-mode application can send messages to a privileged process (like a Windows service). What prevents any user-mode application from doing that? And if your Windows service is running as "NT_AUTHORITY/SYSTEM" and even executes privileged commands, well you might find you've got a simple privilege escalation vuln. R…