Skip to content

Commit db4824e

Browse files
Merge pull request #195 from stanleysmall-microsoft/main
Release Notes and Breaking Change Documentation
2 parents 5c4536e + 0736d21 commit db4824e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/release_notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Below is a summary of the the main features/bug fixes in the most recent release
66

77
## Session State Provider Release Notes
88

9+
### v5.0.0
10+
This release provides an update for the RedisSessionStateProvider nuget package. As a BREAKING CHANGE, the underlying serialization method has changed. SessionStateItemCollection objects are now treated as an atomic unit. The ability to add custom serialization has been removed. These changes were made for necessary security improvements.
11+
912
**Note:** v4.0+ requires .NET Framework 4.6.2 or higher. v3.0+ requires .NET Framework 4.5.2 or higher. If you are using .net 4.0, 4.5.0 or 4.5.1, then please use an older version of Session State Provider (i.e. 2.x).
1013

1114
### v4.0.1
@@ -81,6 +84,9 @@ Updated `StackExchange.Redis.StrongName` to version 1.0.481 from 1.0.394. Due to
8184

8285
## Output Cache Provider Release Notes
8386

87+
### v4.0.0
88+
This release provides an update for the RedisSessionStateProvider nuget package. As a BREAKING CHANGE, the underlying serialization method has changed. The ability to add custom serialization has been removed. These changes were made for necessary security improvements.
89+
8490
**Note:** v4.0+ requires .NET Framework 4.6.2 or higher. v3.0+ requires .NET Framework 4.5.2 or higher. If you are using .net 4.0, 4.5.0 or 4.5.1, then please use an older version of Session State Provider (i.e. 2.x).
8591

8692
### v3.0.1

docs/v5.0.0 Breaking Change.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# v5.0.0 Breaking Change
2+
This release provides an update for the RedisSessionStateProvider nuget package. As a BREAKING CHANGE, the underlying serialization method has changed. SessionStateItemCollection objects are now treated as an atomic unit. The ability to add custom serialization has been removed. These changes were made for necessary security improvements.
3+
4+
The BinaryFormatter type is insecure and can't be made secure [1]. The previous ASP.NET Session State Provider implementation for Redis relied on BinaryFormatter to serialize session state objects. No drop-in replacement exists for BinaryFormatter which does not require defining a contract for the serialized objects [2]. However, the SessionStateItemCollection type offers a serialization method based on BinaryWriter [3]. BinaryWriter serializes primitive types instead of generic objects [4].
5+
6+
[1] https://docs.microsoft.com/dotnet/standard/serialization/binaryformatter-security-guide
7+
8+
[2] https://stackoverflow.com/questions/12461321/what-does-system-serializableattribute-do
9+
10+
[3] https://docs.microsoft.com/dotnet/api/system.web.sessionstate.sessionstateitemcollection.serialize
11+
12+
[4] https://docs.microsoft.com/dotnet/api/system.io.binarywriter

0 commit comments

Comments
 (0)