mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #266] [MERGED] Fix ASP.NET backend listening on 0.0.0.0 #1126
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/266
Author: @gfs
Created: 5/31/2019
Status: ✅ Merged
Merged: 7/1/2019
Merged by: @robertmuehsig
Base:
master← Head:gfs/listen-on-127.0.0.1📝 Commits (5)
98a5495Prevents binding to 0.0.0.0 on Windows6d31c41Change NodeIntegration Default to Falsed3d7361Version in build script now a variable07a0bc9Revert NodeIntegration Change802b1acUpdate README.md📊 Changes
4 files changed (+20 additions, -6 deletions)
View changed files
📝
ElectronNET.API/Entities/WebPreferences.cs(+1 -1)📝
ElectronNET.API/WebHostBuilderExtensions.cs(+1 -1)📝
README.md(+13 -0)📝
buildReleaseNuGetPackages.cmd(+5 -4)📄 Description
Why this change?
Default behavior for windows appears to be to resolve
localhostto0.0.0.0which causes the Windows firewall to get triggered, but also exposes the ASP.NET backend to remote access which opens up the app to RCE risks unnecessarily.Also
Add a comment for why NodeIntegration is true.
The version used in the build script is now a variable, only needs to be changed once.
I've validated that with this changed behavior, our App, Attack Surface Analyzer, encounters no issues. I'm unable to test it on the WebApp as the version on master currently does not work for me (even without my changes).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.