Bitwarden infrastructure/backend (API, database, Docker, etc).
637 matches across 7 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …/Sso.IntegrationTest/Utilities/SuccessfulAuthResult.cs | 1 | using System.Security.Claims; |
| LOW | …/IdentityServer/DistributedCachePersistedGrantStore.cs | 1 | using Bit.Sso.Utilities; |
| LOW | …arden_license/src/Sso/Utilities/OpenIdConnectScopes.cs | 1 | namespace Bit.Sso.Utilities; |
| LOW | …arden_license/src/Sso/Utilities/OpenIdConnectScopes.cs | 21 | /// OPTIONAL. This scope value requests access to the End-User's default |
| LOW | …arden_license/src/Sso/Utilities/OpenIdConnectScopes.cs | 41 | /// phone_number_verified Claims. |
| LOW | …arden_license/src/Sso/Controllers/AccountController.cs | 461 | var providerUserId = userIdClaim.Value; |
| LOW | …grationTest/Auth/Repositories/DeviceRepositoryTests.cs | 581 | // Act |
| LOW | …grationTest/Auth/Repositories/DeviceRepositoryTests.cs | 801 | |
| LOW | …ationTestCommon/Factories/WebApplicationFactoryBase.cs | 81 | /// </summary> |
| LOW | …ationTestCommon/Factories/WebApplicationFactoryBase.cs | 101 | /// <summary> |
| LOW | …OrganizationDuoUniversalTwoFactorTokenProviderTests.cs | 241 | // Assert |
| LOW | …s/EmergencyAccess/DeleteEmergencyAccessCommandTests.cs | 361 | mail.ToEmails.Contains(bobAliceRecord.GrantorEmail) && |
| LOW | …est/Platform/Push/Engines/AzureQueuePushEngineTests.cs | 721 | // [Fact] |
| LOW | test/Core.Test/AutoFixture/AutoFixtureExtensions.cs | 1 | using System.Linq.Expressions; |
| LOW | test/Core.Test/AutoFixture/AutoFixtureExtensions.cs | 21 | var rnd = new Random(seed); |
| LOW | …igration/ValueObjects/MigrationPathIdsSnapshotTests.cs | 1 | using Bit.Core.Billing.Enums; |
| LOW | test/Identity.Test/Wrappers/UserManagerTestWrapper.cs | 61 | return Task.FromResult(TWO_FACTOR_ENABLED); |
| LOW | …ty.IntegrationTest/Endpoints/IdentityServerSsoTests.cs | 61 | // "HasMasterPassword": true, |
| LOW | …ty.IntegrationTest/Endpoints/IdentityServerSsoTests.cs | 141 | // they can decrypt with either option |
| LOW | …ty.IntegrationTest/Endpoints/IdentityServerSsoTests.cs | 181 | // "UserDecryptionOptions": { |
| LOW | …ty.IntegrationTest/Endpoints/IdentityServerSsoTests.cs | 241 | Name = "Android", |
| LOW | …ion/VaultAccess/ResourceOwnerPasswordValidatorTests.cs | 61 | |
| LOW | …i.Test/Utilities/ControllerAuthorizationTestHelpers.cs | 21 | |
| LOW | …i.Test/Utilities/ControllerAuthorizationTestHelpers.cs | 41 | /// </description> |
| LOW | …st/Api.Test/Dirt/OrganizationReportsControllerTests.cs | 121 | // { |
| LOW | test/Common/AutoFixture/SutProvider.cs | 41 | /// <summary> |
| LOW | test/Common/AutoFixture/SutProvider.cs | 81 | |
| LOW | …Common/AutoFixture/Attributes/BitCustomizeAttribute.cs | 1 | using AutoFixture; |
| LOW | …ure/Attributes/RepeatingPatternBitAutoDataAttribute.cs | 1 | #nullable enable |
| LOW | …ure/Attributes/RepeatingPatternBitAutoDataAttribute.cs | 21 | /// 1st example: |
| LOW | …st/Common/MockedHttpClient/MockedHttpMessageHandler.cs | 41 | } |
| LOW | …st/Common/MockedHttpClient/MockedHttpMessageHandler.cs | 81 | |
| LOW | ….IntegrationTest/Controllers/AccountsControllerTest.cs | 421 | |
| LOW | ….IntegrationTest/Controllers/AccountsControllerTest.cs | 601 | var response = await _client.SendAsync(message); |
| LOW | …ationTest/Controllers/EmergencyAccessControllerTest.cs | 121 | /// Scope: end-to-end through the V2 path; also asserts the grantor's KDF is |
| LOW | …/Api.IntegrationTest/Helpers/PerformanceTestHelpers.cs | 1 | using System.Net.Http.Headers; |
| LOW | test/SeederApi.IntegrationTest/HttpClientExtensions.cs | 1 | using System.Diagnostics.CodeAnalysis; |
| LOW | util/EfShared/MigrationBuilderExtensions.cs | 1 | using System.Runtime.CompilerServices; |
| LOW | util/Seeder/IQuery.cs | 1 | namespace Bit.Seeder; |
| LOW | util/Seeder/IQuery.cs | 21 | /// Executes the query based on the provided request object. |
| LOW | util/Seeder/IQuery.cs | 41 | /// <summary> |
| LOW | util/Seeder/IScene.cs | 1 | namespace Bit.Seeder; |
| LOW | util/Seeder/IScene.cs | 21 | /// </summary> |
| LOW | util/Seeder/IScene.cs | 41 | /// </summary> |
| LOW | util/Seeder/IScene.cs | 61 | } |
| LOW | util/Seeder/IScene.cs | 81 | /// <returns>A scene result containing the typed result data, mangle map, and entity tracking information.</returns> |
| LOW | util/Seeder/Options/DensityProfile.cs | 21 | public double MembershipSkew { get; init; } |
| LOW | util/Seeder/Options/DensityProfile.cs | 41 | public double EmptyGroupRate { get; init; } |
| LOW | util/Seeder/Options/DensityProfile.cs | 61 | /// </summary> |
| LOW | util/Seeder/Options/DensityProfile.cs | 81 | /// </summary> |
| LOW | util/Seeder/Options/IndividualUserOptions.cs | 1 | namespace Bit.Seeder.Options; |
| LOW | util/Seeder/Options/IndividualUserOptions.cs | 21 | /// Optional email. |
| LOW | util/Seeder/Options/OrganizationVaultOptions.cs | 21 | public required string Domain { get; init; } |
| LOW | util/Seeder/Options/OrganizationVaultOptions.cs | 41 | /// </summary> |
| LOW | util/Seeder/Options/OrganizationVaultOptions.cs | 61 | |
| LOW | util/Seeder/Options/OrganizationVaultOptions.cs | 81 | /// <summary> |
| LOW | util/Seeder/Options/OrganizationVaultOptions.cs | 101 | public string? Password { get; init; } |
| LOW | util/Seeder/Pipeline/BulkCommitter.cs | 21 | /// Flushes accumulated entities from <see cref="SeederContext"/> to the database via BulkCopy. |
| LOW | util/Seeder/Pipeline/EntityRegistry.cs | 1 | namespace Bit.Seeder.Pipeline; |
| LOW | util/Seeder/Pipeline/EntityRegistry.cs | 21 | internal record UserDigest(Guid UserId, Guid OrgUserId, string SymmetricKey); |
| 476 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | …Organizations/InitPendingOrganizationValidatorTests.cs | 429 | OrganizationKeys = new Bit.Core.KeyManagement.Models.Data.PublicKeyEncryptionKeyPairData( |
| CRITICAL | …entity.IntegrationTest/Login/ClientVersionGateTests.cs | 79 | var error = Bit.Test.Common.Helpers.AssertHelper.AssertJsonProperty(errorBody.RootElement, "ErrorModel", JsonVal |
| CRITICAL | …entity.IntegrationTest/Login/ClientVersionGateTests.cs | 80 | var message = Bit.Test.Common.Helpers.AssertHelper.AssertJsonProperty(error, "Message", JsonValueKind.String).Ge |
| CRITICAL | …onsole/Controllers/OrganizationUsersControllerTests.cs | 710 | .Returns(new Bit.Core.AdminConsole.Utilities.v2.Results.CommandResult(new OneOf.Types.None())); |
| CRITICAL | …onsole/Controllers/OrganizationUsersControllerTests.cs | 735 | .Returns(new Bit.Core.AdminConsole.Utilities.v2.Results.CommandResult( |
| CRITICAL | …onsole/Controllers/OrganizationUsersControllerTests.cs | 736 | new Bit.Core.AdminConsole.OrganizationFeatures.AccountRecovery.v2.PasswordUpdateFailedError("Error messa |
| CRITICAL | …ks/Identity/IdentityServer/PersistedGrantStoreTests.cs | 51 | new Bit.Core.Auth.Repositories.Cosmos.GrantRepository(cosmosConnectionString), |
| CRITICAL | …ks/Identity/IdentityServer/PersistedGrantStoreTests.cs | 52 | g => new Bit.Core.Auth.Models.Data.GrantItem(g) |
| CRITICAL | …erver/RequestValidators/CustomTokenRequestValidator.cs | 104 | || context.Result.ValidatedRequest.Client.AllowedScopes.Contains(ApiScopes.ApiSecrets)) |
| CRITICAL | …erver/RequestValidators/CustomTokenRequestValidator.cs | 106 | if (context.Result.ValidatedRequest.Client.Properties.TryGetValue("encryptedPayload", out var payload) && |
| CRITICAL | src/Admin/AdminConsole/Models/OrganizationEditModel.cs | 34 | Plan = Core.Billing.Enums.PlanType.TeamsMonthly.GetDisplayAttribute()?.GetName(); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …nse/test/SSO.Test/Controllers/AccountControllerTest.cs | 312 | var user = new User { Id = Guid.NewGuid(), Email = "user@example.com" }; |
| LOW | …nse/test/SSO.Test/Controllers/AccountControllerTest.cs | 556 | var email = "user@example.com"; |
| LOW | …nse/test/SSO.Test/Controllers/AccountControllerTest.cs | 619 | var email = "user@example.com"; |
| LOW | test/Billing.Test/Controllers/BitPayControllerTests.cs | 233 | var user = new User { Id = userId, Email = "user@example.com" }; |
| LOW | test/Billing.Test/Controllers/BitPayControllerTests.cs | 248 | await _mailService.Received(1).SendAddedCreditAsync("user@example.com", 100.00m); |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 151 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 194 | Arg.Is<IEnumerable<string>>(emails => emails.Contains("user@example.com")), |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 236 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 298 | email.ToEmails.Contains("user@example.com") && |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 1059 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 1114 | Arg.Is<IEnumerable<string>>(emails => emails.Contains("user@example.com")), |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 1205 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2479 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2530 | Arg.Is<IEnumerable<string>>(emails => emails.Contains("user@example.com")), |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2565 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2621 | Arg.Is<IEnumerable<string>>(emails => emails.Contains("user@example.com")), |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2656 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2702 | email.ToEmails.Contains("user@example.com") && |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2745 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2796 | Arg.Is<IEnumerable<string>>(emails => emails.Contains("user@example.com")), |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2826 | var user = new User { Id = _userId, Email = "user@example.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 2952 | var organization = new Organization { Id = _organizationId, PlanType = PlanType.TeamsAnnually, BillingEmail = "t |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 3039 | var organization = new Organization { Id = _organizationId, PlanType = PlanType.TeamsAnnually, BillingEmail = "t |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 3085 | var user = new User { Id = _userId, Email = "test@test.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 3171 | var user = new User { Id = _userId, Email = "test@test.com", Premium = true }; |
| LOW | …t/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs | 3217 | var user = new User { Id = _userId, Email = "test@test.com", Premium = true }; |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 325 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 356 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 377 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 398 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 416 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 441 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 468 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 495 | Email = "user@example.com", |
| LOW | …pi/Request/Accounts/RegisterFinishRequestModelTests.cs | 522 | Email = "user@example.com", |
| LOW | …/UserFeatures/Registration/RegisterUserCommandTests.cs | 578 | user.Email = "user@example.com"; |
| LOW | …ore.Test/Platform/Mailer/HandlebarMailRendererTests.cs | 49 | var view = new TestMailView { Name = "Jane Doe" }; |
| LOW | test/Core.Test/Utilities/EmailValidationTests.cs | 12 | [InlineData("user@example.com", "example.com")] |
| LOW | test/Core.Test/Utilities/CoreHelpersTests.cs | 445 | [InlineData("user@example.com")] |
| LOW | test/Core.Test/Utilities/DomainNameAttributeTests.cs | 52 | [InlineData("user@example.com")] // email format |
| LOW | test/Core.Test/Dirt/Services/SlackServiceTests.cs | 198 | var email = "user@example.com"; |
| LOW | test/Core.Test/Dirt/Services/SlackServiceTests.cs | 231 | var email = "user@example.com"; |
| LOW | test/Core.Test/Dirt/Services/SlackServiceTests.cs | 263 | var email = "user@example.com"; |
| LOW | test/Core.Test/Dirt/Services/SlackServiceTests.cs | 289 | var email = "user@example.com"; |
| LOW | test/Core.Test/Dirt/Services/SlackServiceTests.cs | 310 | var email = "user@example.com"; |
| LOW | test/Core.Test/Services/HandlebarsMailServiceTests.cs | 325 | [InlineData("Acme Corp", "Acme Corp")] |
| LOW | …ccounts/TrialSendVerificationEmailRequestModelTests.cs | 41 | [InlineData("user@example.com")] |
| LOW | …nds/CreatePremiumSelfHostedSubscriptionCommandTests.cs | 126 | Email = "user@example.com", |
| LOW | …t/Core.Test/Billing/Services/SubscriberServiceTests.cs | 88 | Feedback = "Lorem ipsum" |
| LOW | …t/Core.Test/Billing/Services/SubscriberServiceTests.cs | 134 | Feedback = "Lorem ipsum" |
| LOW | …t/Core.Test/Billing/Services/SubscriberServiceTests.cs | 180 | Feedback = "Lorem ipsum" |
| LOW | …t/Identity.Test/Controllers/AccountsControllerTests.cs | 79 | var response = await _sut.PostPasswordPrelogin(new PasswordPreloginRequestModel { Email = "user@example.com" }); |
| LOW | …t/Identity.Test/Controllers/AccountsControllerTests.cs | 117 | var email = "user@example.com"; |
| LOW | …t/Identity.Test/Controllers/AccountsControllerTests.cs | 172 | var response = await _sut.PostPasswordPrelogin(new PasswordPreloginRequestModel { Email = "user@example.com" }); |
| LOW | …t/Identity.Test/Controllers/AccountsControllerTests.cs | 181 | var email = "user@example.com"; |
| LOW | …t/Api.Test/Auth/Controllers/AccountsControllerTests.cs | 107 | var email = "user@example.com"; |
| LOW | …t/Api.Test/Auth/Controllers/AccountsControllerTests.cs | 837 | Email = "user@example.com" |
| LOW | …Import/ImportOrganizationUsersAndGroupsCommandTests.cs | 186 | Email = "test@test.com", |
| LOW | test/SeederApi.IntegrationTest/RustSdkCipherTests.cs | 255 | CardholderName = "John Doe", |
| LOW | test/SeederApi.IntegrationTest/RustSdkCipherTests.cs | 270 | Assert.Equal("John Doe", RustSdkService.DecryptString(card.GetProperty("cardholderName").GetString()!, orgKeys.K |
| 7 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/SharedWeb.Test/DataProtectionServicesTests.cs | 240 | // Step 1: We deploy a new version of our app but with NO config changes |
| LOW | test/SharedWeb.Test/DataProtectionServicesTests.cs | 254 | // Step 2: We generate a new certificate and upload it to a DIFFERENT blob in azure |
| LOW | test/SharedWeb.Test/DataProtectionServicesTests.cs | 267 | // Step 3: Start apps that have that new cert as able to Unprotect ONLY, this step |
| LOW | test/SharedWeb.Test/DataProtectionServicesTests.cs | 293 | // Step 4: This is where real config changes start to happen, we actually start protecting |
| LOW | …c/Core/HostedServices/ApplicationCacheHostedService.cs | 71 | // Step 1: Signal ExecuteAsync to stop gracefully |
| LOW | …c/Core/HostedServices/ApplicationCacheHostedService.cs | 74 | // Step 2: Wait for ExecuteAsync to finish cleanly |
| LOW | …c/Core/HostedServices/ApplicationCacheHostedService.cs | 80 | // Step 3: Now safely dispose resources (ExecuteAsync is done) |
| LOW | …c/Core/HostedServices/ApplicationCacheHostedService.cs | 84 | // Step 4: Clean up subscription |
| LOW | …cies/PolicyEventHandlers/SendOptionsSyncPolicyEvent.cs | 28 | // Step 1: sync SendOptionsPolicy.Data.DisableHideEmail -> SendControlsPolicy.Data.DisableHideEmail |
| LOW | …cies/PolicyEventHandlers/SendOptionsSyncPolicyEvent.cs | 42 | // Step 2: sync Enabled status. SendControlsPolicy is enabled if either legacy policy is enabled |
| LOW | …cies/PolicyEventHandlers/DisableSendSyncPolicyEvent.cs | 28 | // Step 1: sync DisableSend.Enabled -> SendControlsPolicy.Data.DisableSend |
| LOW | …cies/PolicyEventHandlers/DisableSendSyncPolicyEvent.cs | 51 | // Step 2: sync Enabled status. SendControlsPolicy is enabled if either legacy policy is enabled |
| LOW | src/Api/Tools/Controllers/ImportCiphersController.cs | 134 | // we need to check if the user has permission to create collections |
| LOW | …zations/Handlers/RecoverAccountAuthorizationHandler.cs | 39 | // Step 1: check that the User has permissions with respect to the organization. |
| LOW | …zations/Handlers/RecoverAccountAuthorizationHandler.cs | 51 | // Step 2: check that the User has permissions with respect to any provider the target user is a member of. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …IntegrationTest/MailKitSmtpMailDeliveryServiceTests.cs | 90 | // this test can be copied, and changed to utilize that new feature and instead of |
| MEDIUM | …th/Identity/TokenProviders/DuoUniversalTokenService.cs | 17 | /// have this class injected to utilize these methods |
| MEDIUM | …ore/Auth/UserFeatures/UserEmail/IChangeEmailCommand.cs | 23 | /// perform robust verification before invoking it, including (at minimum): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …arden_license/src/Sso/Controllers/AccountController.cs | 486 | /// <exception cref="Exception">An exception if the user cannot be provisioned as requested.</exception> |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .claude/hooks/rust-sdk-surface-check.sh | 30 | # Check if the RustSdk Cargo.toml was modified. |
| LOW | .claude/hooks/rust-sdk-surface-check.sh | 35 | # Check if the API surface reference was already updated. |
| LOW | .claude/hooks/seeder-docs-check.sh | 46 | # Check if any Seeder .md files were already modified. |
| LOW | .github/workflows/repository-management.yml | 104 | # Check if version is newer. |