Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
This report summarizes scanner evidence for btcpayserver/btcpayserver, a C# project with 7,874 GitHub stars. SynthScan examined 236,002 lines of code across 1572 source files, recording 91 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 73 finding(s).
Are imports declared and package/API names verified? 18 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 91 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 91 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 1 | // Copyright (c) Microsoft. All rights reserved. | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 21 | /// | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 41 | /// </summary> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 81 | COMMENT | |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 141 | #endregion | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 181 | /// class that is empty, has the specified initial capacity, and uses the default | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 221 | /// <typeparam name="TValueCollection"> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 241 | COMMENT | |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 281 | return multiValueDictionary; | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 321 | /// <summary> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 361 | COMMENT | |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 401 | /// Creates a new new instance of the <see cref="MultiValueDictionary{TKey, TValue}" /> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 441 | /// internal dictionary will use instances of the <typeparamref name="TValueCollection"/> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 481 | /// will contain in its internal dictionary. | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 521 | /// </typeparam> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 541 | throw new InvalidOperationException(("Properties.Resources.Create_TValueCollectionReadOnly")); | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 561 | /// <param name="enumerable">IEnumerable to copy elements into this from</param> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 601 | /// <param name="key">The <typeparamref name="TKey"/> of the element to add.</param> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 621 | dictionary.Add(key, collection); | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 681 | /// Removes the first instance (if any) of the given <typeparamref name="TKey"/>-<typeparamref name="TValue"/> | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 761 | /// <param name="key">The <typeparamref name="TKey"/> to search the <see cref="MultiValueDictionary{TKey,TValue} | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 781 | /// in this <see cref="MultiValueDictionary{TKey,TValue}"/> that has one or more associated | COMMENT |
| LOW | BTCPayServer.Rating/MultiValueDictionary.cs | 821 | /// </summary> | COMMENT |
| LOW | BTCPayServer/HostCommands.cs | 41 | /// <summary> | COMMENT |
| LOW | BTCPayServer/Payments/IPaymentMethodHandler.cs | 21 | namespace BTCPayServer.Payments | COMMENT |
| LOW | BTCPayServer/Payments/IPaymentMethodHandler.cs | 41 | /// </summary> | COMMENT |
| LOW | BTCPayServer/wwwroot/js/datatable.js | 201 | COMMENT | |
| LOW | BTCPayServer/Plugins/Dotnet/PluginLoader.cs | 21 | /// as well as a custom file (*.config files). These files describe a list of .dlls and a set of dependencies. | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/PluginLoader.cs | 41 | /// </para> | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/PluginLoader.cs | 81 | /// A list of types which should be shared between the host and the plugin. | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/PluginLoader.cs | 181 | /// True when this plugin is capable of being unloaded. | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/PluginLoader.cs | 281 | => _context.LoadAssemblyFromFilePath(assemblyPath); | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/MvcPluginExtensions.cs | 1 | // Copyright (c) Nate McMaster. | COMMENT |
| LOW | …PayServer/Plugins/Dotnet/PluginReloadedEventHandler.cs | 1 | // Copyright (c) Nate McMaster. | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/PluginConfig.cs | 41 | /// <summary> | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/PluginConfig.cs | 61 | /// </seealso> | COMMENT |
| LOW | BTCPayServer/Plugins/Dotnet/PluginConfig.cs | 101 | /// </summary> | COMMENT |
| LOW | …er/Plugins/Dotnet/Loader/AssemblyLoadContextBuilder.cs | 101 | /// <returns>The builder.</returns> | COMMENT |
| LOW | …er/Plugins/Dotnet/Loader/AssemblyLoadContextBuilder.cs | 201 | /// </para> | COMMENT |
| LOW | …er/Plugins/Dotnet/Loader/AssemblyLoadContextBuilder.cs | 321 | return this; | COMMENT |
| LOW | …ayServer/Plugins/Dotnet/LibraryModel/ManagedLibrary.cs | 21 | AppLocalPath = appLocalPath ?? throw new ArgumentNullException(nameof(appLocalPath)); | COMMENT |
| LOW | …ayServer/Plugins/Dotnet/LibraryModel/ManagedLibrary.cs | 41 | /// For most managed libraries, this will be the file name. | COMMENT |
| LOW | …PayServer/Plugins/Dotnet/LibraryModel/NativeLibrary.cs | 21 | AdditionalProbingPath = additionalProbingPath ?? throw new ArgumentNullException(nameof(additionalProbingPat | COMMENT |
| LOW | …PayServer/Plugins/Dotnet/LibraryModel/NativeLibrary.cs | 41 | /// </summary> | COMMENT |
| LOW | …lugins/Impersonation/ImpersonationPermissionHandler.cs | 21 | /// <summary> | COMMENT |
| LOW | BTCPayServer/Services/Invoices/InvoiceRepository.cs | 101 | /// <returns></returns> | COMMENT |
| LOW | BTCPayServer/Services/Invoices/InvoiceRepository.cs | 541 | public async Task<InvoiceEntity> UpdateInvoiceMetadata(string invoiceId, JObject metadata) | COMMENT |
| LOW | BTCPayServer/Services/Invoices/InvoiceRepository.cs | 581 | { | COMMENT |
| LOW | BTCPayServer/Services/Invoices/InvoiceEntity.cs | 881 | COMMENT | |
| LOW | BTCPayServer/Services/Invoices/InvoiceEntity.cs | 921 | [JsonIgnore] | COMMENT |
| LOW | BTCPayServer/Services/Invoices/InvoiceEntity.cs | 941 | [JsonConverter(typeof(NumericStringJsonConverter))] | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | BTCPayServer.Client/Models/ApplicationUserData.cs | 21 | /// the name of the user | COMMENT |
| LOW | BTCPayServer.Client/Models/ApplicationUserData.cs | 41 | /// Whether the user was approved by an admin | COMMENT |
| LOW | …ayServer.Client/Models/UpdateApplicationUserRequest.cs | 21 | /// current password of the user, required to change the email or the password | COMMENT |
| LOW | BTCPayServer.Tests/docker-bitcoin-multisig-setup.sh | 1 | #!/bin/bash | COMMENT |
| LOW | BTCPayServer.Tests/UtilitiesTests.cs | 61 | // public async Task UpdateTransifex() | COMMENT |
| LOW | BTCPayServer.Tests/UtilitiesTests.cs | 81 | // } | COMMENT |
| LOW | BTCPayServer.Tests/UtilitiesTests.cs | 101 | // { | COMMENT |
| LOW | BTCPayServer.Tests/LightningTests.cs | 241 | // check payments list for store node | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | BTCPayServer/Filters/OnlyMediaTypeAttribute.cs | 44 | if (!context.RouteContext.HttpContext.Request.Headers.ContainsKey("Accept")) | CODE |
| CRITICAL | …/Subscriptions/Controllers/UIPlanCheckoutController.cs | 72 | StoreBranding = await StoreBrandingViewModel.CreateAsync(Request, uriResolver, checkout.Plan.Offering.App.St | CODE |
| CRITICAL | …/HostedServices/TransactionLabelMarkerHostedService.cs | 65 | foreach (var txOut in transactionEvent.NewTransactionEvent.TransactionData.Transaction.Outputs.A | CODE |
| CRITICAL | BTCPayServer.Tests/UnitTest1.cs | 2016 | s.ServerUri = new Uri(s.Server.PayTester.ServerUriWithIP.AbsoluteUri.Replace("127.0.0.1", "localhost")); | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …PayServer/Plugins/Translations/Translations.Default.cs | 1668 | "Send a <code>GET</code> request to <code>https://btcpay.example.com/api/v1/invoices/{invoiceId}</code> with <code>Aut | STRING |
| HIGH | docs/developers/api/authentication.md | 10 | Authorization: token YOUR_API_KEY | CODE |
| HIGH | docs/developers/api/examples.md | 9 | API_KEY="your-api-key" | CODE |
| HIGH | docs/developers/api/README.md | 26 | API_KEY="your-api-key" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …wwwroot/swagger/v1/swagger.template.subscriptions.json | 722 | "example": "user@example.com" | CODE |
| LOW | …wwwroot/swagger/v1/swagger.template.subscriptions.json | 1120 | "example": "user@example.com" | CODE |
| LOW⚡ | BTCPayServer/wwwroot/main/site.js | 519 | e.target.setAttribute('placeholder', e.target.value) | CODE |
| LOW⚡ | BTCPayServer/wwwroot/main/site.js | 523 | if (!e.target.value) e.target.value = e.target.getAttribute('placeholder') | CODE |
| LOW⚡ | BTCPayServer/wwwroot/main/site.js | 524 | e.target.removeAttribute('placeholder') | CODE |
| LOW | BTCPayServer.Tests/EmailsTests.cs | 228 | // new SendEmailRequest { Body = "lol", Subject = "subj", Email = "to@example.org" }); | COMMENT |
| LOW | BTCPayServer.Tests/EmailsTests.cs | 268 | new SendEmailRequest { Body = "lol", Subject = "subj", Email = "to@example.org" }); | CODE |
| LOW | BTCPayServer.Tests/FastTests.cs | 476 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | BTCPayServer.Tests/FastTests.cs | 476 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | BTCPayServer.Tests/WalletTests.cs | 1234 | await Expect(s.SearchFilters.DateRangeTimeZone).ToHaveAttributeAsync("placeholder", browserTimeZone + " (Default | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …yServer/wwwroot/plugins/PluginManager/plugins-embed.js | 141 | function renderSelectedPluginPanelLoading() { | CODE |
| LOW | …yServer/wwwroot/plugins/PluginManager/plugins-embed.js | 147 | function renderSelectedPluginPanelError(slug) { | CODE |
| LOW | …yServer/wwwroot/plugins/PluginManager/plugins-embed.js | 159 | async function reloadSelectedPluginPanel(slug) { | CODE |
| LOW | BTCPayServer/wwwroot/js/webauthn/login.js | 30 | async function verifyAssertionWithServer(assertedCredential) { | CODE |
| LOW | BTCPayServer/wwwroot/js/wallet/WalletSend.js | 44 | function updateFiatValueWithCurrentElement() { | CODE |
| LOW | BTCPayServer/wwwroot/js/wallet/WalletSend.js | 48 | function updateCryptoValueWithCurrentElement(){ | CODE |
| LOW | BTCPayServer/wwwroot/modal/btcpay.js | 184 | function appendAndShowInvoiceFrame(invoiceId, params) { | CODE |
| LOW | BTCPayServer/wwwroot/main/site.js | 442 | function handleInputGroupClearButtonDisplay(element) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | BTCPayServer/wwwroot/swagger/v1/swagger.template.json | 6 | "description": "# Introduction\n\nThe BTCPay Server Greenfield API is a REST API. Our API has predictable resource-o | CODE |
| MEDIUM | .github/ISSUE_TEMPLATE/bug_report.yml | 46 | description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no | CODE |
| LOW | BTCPayServer.Tests/FastTests.cs | 197 | /// This test check that we don't forget to bump one image in both docker-compose.altcoins.yml and docker-compos | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | BTCPayServer/Controllers/UIManageController.APIKeys.cs | 340 | //matched the identifier and authority, but we need to check if what the app is requesting in terms of p | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | BTCPayServer.Tests/docker-bitcoin-multisig-setup.sh | 7 | # Usage: | COMMENT |