Skip to content

Commit 77a134c

Browse files
authored
Merge pull request #32 from prom-client-net/fix/vulnerability-rce
Fix Vulnerability RCE
2 parents 9a2fd3c + 7e5c149 commit 77a134c

File tree

5 files changed

+18
-30
lines changed

5 files changed

+18
-30
lines changed

Prometheus.Client.AspNetCore.sln

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ VisualStudioVersion = 15.0.26228.4
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D994EEE1-3786-4FDF-8A49-76D8B9819A29}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Prometheus.Client.AspNetCore", "src\Prometheus.Client.AspNetCore\Prometheus.Client.AspNetCore.csproj", "{B70120FA-53E2-4290-8DF2-BD3AF7139DCB}"
9-
EndProject
108
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "root", "root", "{FA0CD8D2-E9AE-4518-B989-17901C5928B0}"
119
ProjectSection(SolutionItems) = preProject
1210
.gitattributes = .gitattributes
@@ -28,27 +26,29 @@ EndProjectSection
2826
EndProject
2927
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{D3EB5CE6-053E-4CB3-A828-A987DA33BC3C}"
3028
ProjectSection(SolutionItems) = preProject
31-
.github\workflows\branch.yml = .github\workflows\branch.yml
29+
.github\workflows\pr.yml = .github\workflows\pr.yml
3230
.github\workflows\master.yml = .github\workflows\master.yml
33-
.github\workflows\production.yml = .github\workflows\production.yml
31+
.github\workflows\prod.yml = .github\workflows\prod.yml
3432
EndProjectSection
3533
EndProject
34+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Prometheus.Client.AspNetCore", "src\Prometheus.Client.AspNetCore.csproj", "{9CEA986B-142E-4A8A-87B4-A6C2A5B7106B}"
35+
EndProject
3636
Global
3737
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3838
Debug|Any CPU = Debug|Any CPU
3939
Release|Any CPU = Release|Any CPU
4040
EndGlobalSection
4141
GlobalSection(ProjectConfigurationPlatforms) = postSolution
42-
{B70120FA-53E2-4290-8DF2-BD3AF7139DCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43-
{B70120FA-53E2-4290-8DF2-BD3AF7139DCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
44-
{B70120FA-53E2-4290-8DF2-BD3AF7139DCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
45-
{B70120FA-53E2-4290-8DF2-BD3AF7139DCB}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{9CEA986B-142E-4A8A-87B4-A6C2A5B7106B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43+
{9CEA986B-142E-4A8A-87B4-A6C2A5B7106B}.Debug|Any CPU.Build.0 = Debug|Any CPU
44+
{9CEA986B-142E-4A8A-87B4-A6C2A5B7106B}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{9CEA986B-142E-4A8A-87B4-A6C2A5B7106B}.Release|Any CPU.Build.0 = Release|Any CPU
4646
EndGlobalSection
4747
GlobalSection(SolutionProperties) = preSolution
4848
HideSolutionNode = FALSE
4949
EndGlobalSection
5050
GlobalSection(NestedProjects) = preSolution
51-
{B70120FA-53E2-4290-8DF2-BD3AF7139DCB} = {D994EEE1-3786-4FDF-8A49-76D8B9819A29}
5251
{D3EB5CE6-053E-4CB3-A828-A987DA33BC3C} = {255858DA-9CD1-49FD-BA65-010985E26F2A}
52+
{9CEA986B-142E-4A8A-87B4-A6C2A5B7106B} = {D994EEE1-3786-4FDF-8A49-76D8B9819A29}
5353
EndGlobalSection
5454
EndGlobal

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111

1212
Extension for [Prometheus.Client](https://github.com/prom-client-net/prom-client)
1313

14+
## Installation
1415

15-
#### Installation:
1616
```sh
1717
dotnet add package Prometheus.Client.AspNetCore
1818
```
19-
#### Quik start:
19+
20+
## Use
2021

2122
There are [Examples](https://github.com/prom-client-net/prom-examples/tree/master/Middleware/WebAspNetCore_2.0)
2223

@@ -40,6 +41,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
4041
}
4142

4243
```
44+
4345
## Contribute
4446

4547
Contributions to the package are always welcome!
@@ -60,4 +62,3 @@ If you like what I'm accomplishing, feel free to buy me a coffee
6062
## License
6163

6264
All contents of this package are licensed under the [MIT license](https://opensource.org/licenses/MIT).
63-
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,24 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Description>ASP.NET Core middleware for the Prometheus.Client</Description>
4-
<VersionPrefix>4.5.0</VersionPrefix>
4+
<VersionPrefix>4.5.1</VersionPrefix>
55
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0</TargetFrameworks>
6-
<AssemblyName>Prometheus.Client.AspNetCore</AssemblyName>
76
<PackageId>Prometheus.Client.AspNetCore</PackageId>
8-
<PackageTags>prometheus;metrics</PackageTags>
9-
<PackageIcon>icon.png</PackageIcon>
10-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
11-
<RepositoryType>git</RepositoryType>
127
<RepositoryUrl>https://github.com/prom-client-net/prom-client-aspnetcore</RepositoryUrl>
138
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
14-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
15-
<SignAssembly>true</SignAssembly>
16-
<AssemblyOriginatorKeyFile>../../Prometheus.Client.AspNetCore.snk</AssemblyOriginatorKeyFile>
17-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
18-
<IncludeSymbols>true</IncludeSymbols>
19-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
9+
<AssemblyOriginatorKeyFile>../Prometheus.Client.AspNetCore.snk</AssemblyOriginatorKeyFile>
2010
</PropertyGroup>
2111
<ItemGroup>
22-
<None Include="../../icon.png">
23-
<Pack>true</Pack>
24-
<Visible>false</Visible>
25-
<PackagePath></PackagePath>
26-
</None>
12+
<None Include="../icon.png" Visible="false" Pack="true" PackagePath="" />
2713
</ItemGroup>
2814
<ItemGroup>
29-
<PackageReference Include="Prometheus.Client" Version="[4.5.1,5.0.0)" />
15+
<PackageReference Include="Prometheus.Client" Version="[4.5.3,5.0.0)" />
3016
</ItemGroup>
3117
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' OR '$(TargetFramework)' == 'net5.0'">
3218
<FrameworkReference Include="Microsoft.AspNetCore.App" />
3319
</ItemGroup>
3420
<ItemGroup Condition="'$(TargetFramework)' != 'netcoreapp3.1' AND '$(TargetFramework)' != 'net5.0'">
3521
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
22+
<PackageReference Include="System.Text.Encodings.Web" Version="4.5.1" />
3623
</ItemGroup>
3724
</Project>
File renamed without changes.

0 commit comments

Comments
 (0)