1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00
bitwarden-server/test
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
..
Admin.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
Api.IntegrationTest [AC-2206] Fix assigning Manage access to default collection (#3799) 2024-02-14 08:41:51 -06:00
Api.Test Replace async void with async Task (#3835) 2024-02-22 11:59:08 -05:00
Billing.Test Fix PayPal IPN Logging (#3768) 2024-02-08 15:37:41 +00:00
Common Stop using lockfiles (#3550) 2023-12-12 09:09:42 -05:00
Core.Test [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
Events.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
EventsProcessor.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
Icons.Test [PM-5052] Upgrade to .NET 8 (#3461) 2024-02-05 13:03:42 -05:00
Identity.IntegrationTest [PM-5424] fix TDE provider user (#3771) 2024-02-09 12:08:22 -08:00
Identity.Test [PM-3777[PM-3633] Update minimum KDF iterations when creating new User record (#3687) 2024-01-25 10:59:53 -05:00
Infrastructure.EFIntegration.Test Replace async void with async Task (#3835) 2024-02-22 11:59:08 -05:00
Infrastructure.IntegrationTest [AC-2099] Flexible Collections migration integration tests (#3828) 2024-02-27 10:40:29 +00:00
IntegrationTestCommon Net8 follow-ups part2 (#3751) 2024-02-09 12:08:36 -05:00
Notifications.Test Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00
bitwarden.tests.sln Include all projects in coverage (#3829) 2024-02-20 17:18:40 +01:00