Skip to content

Commit

Permalink
Upgrade/Fixed Library
Browse files Browse the repository at this point in the history
  • Loading branch information
mesquidar committed Nov 7, 2024
1 parent 5a84425 commit 1b65820
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 47 deletions.
6 changes: 3 additions & 3 deletions Cervantes.CORE/Cervantes.CORE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<ItemGroup>
<PackageReference Include="AuthPermissions.AspNetCore" Version="8.0.0" />
<PackageReference Include="CsvHelper" Version="33.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.Forms" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.8" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.Forms" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="8.0.10" />
</ItemGroup>


Expand Down
2 changes: 1 addition & 1 deletion Cervantes.Contracts/Cervantes.Contracts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions Cervantes.DAL/Cervantes.DAL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

<ItemGroup>
<PackageReference Include="HtmlSanitizer" Version="8.1.870" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="8.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.8">
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Npgsql" Version="8.0.4" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.8" />
<PackageReference Include="Npgsql" Version="8.0.5" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.10" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions Cervantes.IFR/Cervantes.IFR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Anthropic.SDK" Version="4.1.1" />
<PackageReference Include="Anthropic.SDK" Version="4.3.0" />
<PackageReference Include="Atlassian.SDK" Version="13.0.0" />
<PackageReference Include="CsvHelper" Version="33.0.1" />
<PackageReference Include="Html2JiraMarkup" Version="1.0.4" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.67" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.70" />
<PackageReference Include="HtmlSanitizer" Version="8.1.870" />
<PackageReference Include="MailKit" Version="4.7.1.1" />
<PackageReference Include="MailKit" Version="4.8.0" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.2.7" />
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Hosting.Server.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.17.2" />
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.17.2" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.28.0" />
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.28.0" />
<PackageReference Include="Mime-Detective" Version="24.7.1" />
<PackageReference Include="Mime-Detective.Definitions.Exhaustive" Version="24.7.1" />
<PackageReference Include="YamlDotNet" Version="16.1.3" />
Expand Down
5 changes: 4 additions & 1 deletion Cervantes.IFR/Parsers/Burp/BurpParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ public void Parse(Guid? project, string user, string path)
vuln.OWASPImpact = "No Data";
vuln.OWASPLikehood = "No Data";
vuln.OWASPVector = "No Data";
vuln.MitreTechniques = "";
vuln.MitreValues = "";

vulnManager.Add(vuln);
vulnManager.Context.SaveChanges();
Expand Down Expand Up @@ -248,7 +250,8 @@ public void Parse(Guid? project, string user, string path)
vuln.OWASPImpact = "No Data";
vuln.OWASPLikehood = "No Data";
vuln.OWASPVector = "No Data";

vuln.MitreTechniques = "";
vuln.MitreValues = "";
vulnManager.Add(vuln);
vulnManager.Context.SaveChanges();

Expand Down
2 changes: 2 additions & 0 deletions Cervantes.IFR/Parsers/CSV/CsvParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ public void Parse(Guid? project, string user, string path)
continue;
}
vuln.FindingId = "No Project";
vuln.MitreTechniques = vul.MitreTechniques == "" ? "" : sanitizer.Sanitize(HttpUtility.HtmlDecode(vul.MitreTechniques));
vuln.MitreValues = vul.MitreValues == "" ? "" : sanitizer.Sanitize(HttpUtility.HtmlDecode(vul.MitreValues));
vulnManager.Add(vuln);
vulnManager.Context.SaveChanges();
}
Expand Down
4 changes: 4 additions & 0 deletions Cervantes.IFR/Parsers/CSV/VulnImportCsv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ public class VulnImportCsv
public string OwaspLikehood { get; set; }
[Index(17)]
public string OwaspImpact { get; set; }
[Index(18)]
public string MitreTechniques { get; set; }
[Index(19)]
public string MitreValues { get; set; }
}
5 changes: 4 additions & 1 deletion Cervantes.IFR/Parsers/Nessus/NessusParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ public void Parse(Guid? project, string user, string path)
vuln.OWASPImpact = "No Data";
vuln.OWASPLikehood = "No Data";
vuln.OWASPVector = "No Data";
vuln.MitreTechniques = "";
vuln.MitreValues = "";

vulnManager.Add(vuln);
vulnManager.Context.SaveChanges();
Expand Down Expand Up @@ -257,7 +259,8 @@ public void Parse(Guid? project, string user, string path)
vuln.OWASPImpact = "No Data";
vuln.OWASPLikehood = "No Data";
vuln.OWASPVector = "No Data";

vuln.MitreTechniques = "";
vuln.MitreValues = "";
vulnManager.Add(vuln);
vulnManager.Context.SaveChanges();

Expand Down
4 changes: 4 additions & 0 deletions Cervantes.IFR/Parsers/Pwndoc/PwndocParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ public void Parse(Guid? project, string user, string path)
vuln.OWASPImpact = "No Data";
vuln.OWASPLikehood = "No Data";
vuln.OWASPVector = "No Data";
vuln.MitreTechniques = "";
vuln.MitreValues = "";
vulnManager.Add(vuln);
vulnManager.Context.SaveChanges();
i++;
Expand Down Expand Up @@ -188,6 +190,8 @@ public void Parse(Guid? project, string user, string path)
vuln.OWASPImpact = "No Data";
vuln.OWASPLikehood = "No Data";
vuln.OWASPVector = "No Data";
vuln.MitreTechniques = "";
vuln.MitreValues = "";
vulnManager.Add(vuln);
vulnManager.Context.SaveChanges();
i++;
Expand Down
48 changes: 24 additions & 24 deletions Cervantes.Web/Cervantes.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,54 +11,54 @@
<ItemGroup>
<PackageReference Include="AngleSharp" Version="1.1.2" />
<PackageReference Include="AuthPermissions.AspNetCore" Version="8.0.0" />
<PackageReference Include="Blazor-ApexCharts" Version="3.4.0" />
<PackageReference Include="Blazor-ApexCharts" Version="3.5.0" />
<PackageReference Include="Blazor.Flags" Version="1.0.0.1" />
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
<PackageReference Include="BlazorMonaco" Version="3.2.0" />
<PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />
<PackageReference Include="CodeBeam.MudBlazor.Extensions" Version="7.0.1" />
<PackageReference Include="CodeBeam.MudBlazor.Extensions" Version="7.0.2" />
<PackageReference Include="FluentValidation" Version="11.10.0" />
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.0" />
<PackageReference Include="Handlebars.Net" Version="2.1.6" />
<PackageReference Include="Handlebars.Net.Extension.NewtonsoftJson" Version="1.0.3" />
<PackageReference Include="Handlebars.Net.Helpers" Version="2.4.5" />
<PackageReference Include="Handlebars.Net.Helpers.Core" Version="2.4.5" />
<PackageReference Include="Hangfire" Version="1.8.14" />
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.14" />
<PackageReference Include="Hangfire.Core" Version="1.8.14" />
<PackageReference Include="Hangfire.PostgreSql" Version="1.20.9" />
<PackageReference Include="Handlebars.Net.Helpers" Version="2.4.6" />
<PackageReference Include="Handlebars.Net.Helpers.Core" Version="2.4.6" />
<PackageReference Include="Hangfire" Version="1.8.15" />
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.15" />
<PackageReference Include="Hangfire.Core" Version="1.8.15" />
<PackageReference Include="Hangfire.PostgreSql" Version="1.20.10" />
<PackageReference Include="Heron.MudCalendar" Version="2.0.3" />
<PackageReference Include="HtmlSanitizer" Version="8.1.870" />
<PackageReference Include="HtmlToOpenXml.dll" Version="3.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.2" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.0.2" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.0.2" />
<PackageReference Include="HtmlToOpenXml.dll" Version="3.2.1" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.10" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.2.0" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.2.0" />
<PackageReference Include="itext7" Version="8.0.5" />
<PackageReference Include="itext7.bouncy-castle-adapter" Version="8.0.5" />
<PackageReference Include="itext7.commons" Version="8.0.5" />
<PackageReference Include="itext7.pdfhtml" Version="5.0.5" />
<PackageReference Include="Mammoth" Version="1.8.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Forms" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.8">
<PackageReference Include="Microsoft.AspNetCore.Components.Forms" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MudBlazor" Version="7.8.0" />
<PackageReference Include="MudBlazor.Extensions" Version="2.0.5" />
<PackageReference Include="MudBlazor" Version="7.15.0" />
<PackageReference Include="MudBlazor.Extensions" Version="2.0.6" />
<PackageReference Include="Net.Codecrete.QrCodeGenerator" Version="2.0.5" />
<PackageReference Include="NLog" Version="5.3.4" />
<PackageReference Include="NLog.Appsettings.Standard" Version="2.1.0" />
<PackageReference Include="NLog.Database" Version="5.3.4" />
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.14" />
<PackageReference Include="Npgsql" Version="8.0.4" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.8" />
<PackageReference Include="Npgsql" Version="8.0.5" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.10" />
<PackageReference Include="PreMailer.Net" Version="2.6.0" />
<PackageReference Include="Scriban" Version="5.10.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
<PackageReference Include="TinyMCE.Blazor" Version="1.0.4" />
<PackageReference Include="Scriban" Version="5.11.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
<PackageReference Include="TinyMCE.Blazor" Version="2.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 0 additions & 5 deletions Cervantes.Web/Components/Pages/Projects/ReportDialog.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ protected override async Task OnInitializedAsync()
CurrentUser = _UserController.GetUser(_accessor.HttpContext.User?.FindFirstValue(ClaimTypes.NameIdentifier));
}

if (CurrentUser != null)
{
var rol = await _userManager.GetRolesAsync(CurrentUser);
rolUser = rol.First();
}

aiEnabled = _aiService.IsEnabled();
await base.OnInitializedAsync();
Expand Down

0 comments on commit 1b65820

Please sign in to comment.