Skip to content

Upstream security: LINE webhook signature timing-attack fix#157

Merged
adolago merged 1 commit intodevfrom
issue/111-line-signature-timing-safe
Jan 28, 2026
Merged

Upstream security: LINE webhook signature timing-attack fix#157
adolago merged 1 commit intodevfrom
issue/111-line-signature-timing-safe

Conversation

@adolago
Copy link
Owner

@adolago adolago commented Jan 28, 2026

Fixes #111.

What changed

  • Use constant-time comparison (crypto.timingSafeEqual) for LINE webhook signature validation.
  • Factor validation into packages/personas/zee/src/line/signature.ts and add focused unit tests.
  • Expand LINE webhook middleware tests to cover invalid signatures and wrong secrets.

Tests

  • pnpm -C packages/personas/zee vitest run src/line/webhook.test.ts src/line/signature.test.ts
  • pnpm -C packages/personas/zee build

@adolago adolago merged commit 18e9473 into dev Jan 28, 2026
1 of 2 checks passed
@adolago adolago deleted the issue/111-line-signature-timing-safe branch January 28, 2026 21:46
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.

Upstream security: LINE webhook signature timing-attack fix

1 participant