Skip to content

fix(security): remove account identifiers from log output (CWE-312)#19

Merged
JerrettDavis merged 1 commit into
masterfrom
fix/security-codeql-cleartext-logging
Jun 23, 2026
Merged

fix(security): remove account identifiers from log output (CWE-312)#19
JerrettDavis merged 1 commit into
masterfrom
fix/security-codeql-cleartext-logging

Conversation

@JerrettDavis

Copy link
Copy Markdown
Owner

Summary

  • Alert chore(deps): Bump docker/setup-buildx-action from 3 to 4 #1 (FlowLedgerApiClient, line 93): Removed {Url} from the LogError template in GetJsonAsync. URLs constructed by GetTransactionsAsync may carry ?accountId=<Guid> query parameters populated from the UI filter — logging these in cleartext is a PII concern in a financial application. The operation description is sufficient to identify the failed call.
  • Alert chore(deps): Bump github/codeql-action from 3 to 4 #2 (FinancialSyncService, line 323): Removed {ProviderId} from the LogWarning template in SeedRecurringFlowsAsync. Provider account IDs are account-scoped identifiers that should not appear in log output per the project's PII logging policy. The seed name alone gives enough diagnostic context.

Resolves CodeQL HIGH alerts #1 and #2: cs/cleartext-storage-of-sensitive-information (CWE-312 / CWE-315).

Test plan

🤖 Generated with Claude Code

CodeQL cs/cleartext-storage-of-sensitive-information flagged two log
statements that serialised account-scoped identifiers into structured log
events — a concern for a financial application under PII logging policy.

  • FlowLedgerApiClient.GetJsonAsync: dropped {Url} from the LogError
    template; URLs may carry ?accountId=<Guid> query parameters. The
    operation description alone is sufficient to identify the failed call.

  • FinancialSyncService.SeedRecurringFlowsAsync: dropped {ProviderId}
    from the LogWarning template; provider account IDs are account-scoped
    identifiers that should not appear in log output. The seed name
    provides enough diagnostic context.

Resolves CodeQL alerts #1 and #2 (HIGH / cs/cleartext-storage-of-sensitive-information).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JerrettDavis JerrettDavis merged commit 40af943 into master Jun 23, 2026
13 checks passed
@JerrettDavis JerrettDavis deleted the fix/security-codeql-cleartext-logging branch June 23, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant