1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
bitwarden-server/src/Core/Utilities
Rui Tomé 9d59e4dc9e
[AC-1637] Sanitize Business and Organization Names from html script injection prior to storing in db (#3302)
* [AC-1637] Added HtmlEncodingStringConverter to encode/decode special chars on JSON serialization/deserialization

* [AC-1637] Added unit tests for HtmlEncodingStringConverter

* [AC-1637] Moved expected values on unit tests to the arrange phase

* [AC-1637] Added HtmlEncodingStringConverter to properties that are for input/output of Org Name and Business name

* [AC-1637] Modified views in Admin project to decode values to display

* [AC-1637] Replaced Html.Raw with HttpUtility.HtmlDecode

* [AC-1637] Added JsonConverter to Provider DTOs

* [AC-1637] Modified HandlebarsMailService to decode organization name before sending emails

* Revert "[AC-1637] Added JsonConverter to Provider DTOs"

This reverts commit 94d507cf93.

* [AC-1637] Fixed Admin panel organization search

* [AC-1637] Sanitizing Organization name and business name on creation in Admin panel

* [AC-1637] Sanitizing organization name and business name on creation by a provider

* [AC-1637] Sanitizing provider name on creation and on viewing in admin panel

* [AC-1637] Added sanitization to more places where Org name is used

* [AC-1637] Swapped using HttpUtility for WebUtility since the later is part of the dotnet framework

* [AC-1637] Updated error messages

* [AC-1637] Decoding on Admin panel add existing organization

* [AC-1637] Fix HTML decoding issues

* [AC-1637] Refactor HTML decoding in View and Model classes on Admin panel

* [AC-1637] Refactor provider name and business name usages to use methods that output decoded values

* [AC-1637] Fixed typo

* [AC-1637] Renamed Provider methods to retrieve Decoded Name and BusinessName

* [AC-1637] Renamed Organization methods to retrieve Decoded Name and BusinessName

* [AC-1637] Update the display name method in the `ProviderOrganizationOrganizationDetails` class to `DisplayName()`
2024-03-05 10:56:48 +00:00
..
AssemblyHelpers.cs [SM-90] Add Config Endpoint Phase 1 (#2130) 2022-09-05 11:19:04 -04:00
BillingHelpers.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
BitPayClient.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
BulkAuthorizationHandler.cs [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
ClaimsExtensions.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
CoreHelpers.cs [PM-3561] Clean the return url of any whitespace (#3696) 2024-02-06 13:30:37 -05:00
CurrentContextMiddleware.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
CustomIpRateLimitMiddleware.cs [PM-6141] Remove rate limiting ip blocker (#3754) 2024-02-07 12:23:26 -05:00
CustomRedisProcessingStrategy.cs [PM-6153] Dedicated redis connection for rate limiter (#3763) 2024-02-07 17:38:18 -05:00
DeviceTypes.cs Added DeviceTypes for CLI (#3329) 2023-11-09 15:23:16 -05:00
DistributedCacheExtensions.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
EncryptedStringAttribute.cs Improve Speed of EncryptedStringAttribute (#3785) 2024-02-20 13:07:54 -05:00
EncryptedStringLengthAttribute.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
EpochDateTimeJsonConverter.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
HandlebarsObjectJsonConverter.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
HostBuilderExtensions.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
IDbMigrator.cs Bitwarden Unified Self-Host project (#2410) 2022-11-18 14:39:01 -05:00
JsonHelpers.cs [AC-1637] Sanitize Business and Organization Names from html script injection prior to storing in db (#3302) 2024-03-05 10:56:48 +00:00
KdfSettingsValidator.cs [PM-3565] Enforce higher minimum KDF (#3304) 2023-12-05 17:21:46 +01:00
LoggerFactoryExtensions.cs Upgrade logging packages for .NET 8 (#3798) 2024-02-13 14:34:55 -05:00
LoggingExceptionHandlerFilterAttribute.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
RequireFeatureAttribute.cs Establish IFeatureService as scoped (#3679) 2024-01-18 09:47:34 -05:00
SecurityHeadersMiddleware.cs [PM-5052] Upgrade to .NET 8 (#3461) 2024-02-05 13:03:42 -05:00
SelfHostedAttribute.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
SpanExtensions.cs [PM-5052] Upgrade to .NET 8 (#3461) 2024-02-05 13:03:42 -05:00
StaticStore.cs [AC-1708] Teams Starter Plan (#3386) 2023-11-03 22:26:47 +00:00
StrictEmailAddressAttribute.cs [SM-244] Resolve dotnet warnings (#2283) 2022-10-18 22:12:26 +02:00
StrictEmailAddressListAttribute.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
SystemTextJsonCosmosSerializer.cs [PM-5645] Cosmos DB Grant Storage (#3634) 2024-01-10 12:59:16 +00:00