Skip to content

Staging#40

Merged
liberuum merged 16 commits intomainfrom
staging
Feb 24, 2026
Merged

Staging#40
liberuum merged 16 commits intomainfrom
staging

Conversation

@liberuum
Copy link
Collaborator

No description provided.

Teep1 and others added 16 commits July 3, 2025 18:46
Whitelist sortByLastModified to only ASC/DESC before interpolation
into orderByRaw() to prevent SQL injection via GraphQL filter input.
Also add column name allowlists for getBudgetStatementLineItems and
getBudgetStatementComments to prevent dynamic column injection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use parameterized Knex raw with make_interval() instead of string
concatenation for expirationInMinutes in ResolverCache.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add column name allowlist validation for all Roadmap model query
methods to prevent SQL injection via user-supplied paramName values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add column name allowlist validation for getUser and getUsers methods
to prevent SQL injection via user-supplied paramName values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add column name allowlist for getUserActivity and wrap JSON.parse in
getBsEvents with try-catch to prevent crashes on malformed input.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Escape %, _, and \ characters in user-supplied path before using
in LIKE clause to prevent wildcard injection attacks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use crypto.timingSafeEqual() instead of !== for secret comparison
to prevent timing-based side-channel attacks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Three mutations (budgetStatementsBatchAdd, budgetLineItemsBatchAdd,
budgetLineItemsBatchUpdate) skipped authorization checks when
ownerType was "Delegates", allowing any authenticated user to
create/modify Delegates budget data. Now properly enforces the
DelegatesAuditor role via Auth.canUpdate for all three mutations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix SQL injection and security vulnerabilities
@liberuum liberuum merged commit 2cf6c29 into main Feb 24, 2026
4 checks passed
@liberuum liberuum deleted the staging branch February 24, 2026 16:06
@liberuum liberuum restored the staging branch February 24, 2026 16:06
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.

3 participants