Skip to content

Commit

Permalink
Refactor to fix CVE
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcongdon committed Oct 18, 2024
1 parent e0b51dc commit a636e5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions vHC/HC_Reporting/Functions/Collection/CImpersonation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ private SafeAccessTokenHandle SafeAccessTokenHandle()
string domainName = CGlobals.REMOTEHOST;

VBRSERVER = domainName;
_logger.Info(String.Format("Enter the login of a user on {0} that you wish to impersonate: ", domainName),false);
Console.WriteLine(String.Format("Enter the login of a user on {0} that you wish to impersonate: ", domainName),false);
string userName = Console.ReadLine();

_logger.Info(String.Format("Enter the password for {0}: ", userName), false);
Console.WriteLine(String.Format("Enter the password for {0}: ", userName), false);

const int LOGON32_PROVIDER_DEFAULT = 0;
//This parameter causes LogonUser to create a primary token.
Expand Down
4 changes: 2 additions & 2 deletions vHC/HC_Reporting/VeeamHealthCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<Company>Veeam</Company>
<Authors>AdamC</Authors>
<ApplicationIcon>Health_Check_Icon.ico</ApplicationIcon>
<AssemblyVersion>2.0.0.526</AssemblyVersion>
<AssemblyVersion>2.0.0.527</AssemblyVersion>
<SignAssembly>False</SignAssembly>
<DelaySign>false</DelaySign>
<FileVersion>2.0.0.526</FileVersion>
<FileVersion>2.0.0.527</FileVersion>
<DebugType>full</DebugType>
<SelfContained>true</SelfContained>
<!--These 2 lines are what produce the single file utility. Possibly doesn't work...-->
Expand Down
4 changes: 2 additions & 2 deletions vHC/VhcXTests/VhcXTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<AssemblyVersion>1.0.0.265</AssemblyVersion>
<FileVersion>1.0.0.265</FileVersion>
<AssemblyVersion>1.0.0.266</AssemblyVersion>
<FileVersion>1.0.0.266</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit a636e5f

Please sign in to comment.