[PR #1047] [MERGED] fix: use constant time comparisons when validating PKCE challenges #1033

Closed
opened 2026-02-04 21:12:11 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pocket-id/pocket-id/pull/1047
Author: @ItalyPaleAle
Created: 10/24/2025
Status: Merged
Merged: 10/24/2025
Merged by: @stonith404

Base: mainHead: pkce-constant-time


📝 Commits (1)

  • 9af6455 fix: use constant time comparisons when validating PKCE challenges

📊 Changes

2 files changed (+39 additions, -7 deletions)

View changed files

📝 backend/internal/service/oidc_service.go (+12 -7)
📝 backend/internal/service/oidc_service_test.go (+27 -0)

📄 Description

This fixes a small potential timing attack


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pocket-id/pocket-id/pull/1047 **Author:** [@ItalyPaleAle](https://github.com/ItalyPaleAle) **Created:** 10/24/2025 **Status:** ✅ Merged **Merged:** 10/24/2025 **Merged by:** [@stonith404](https://github.com/stonith404) **Base:** `main` ← **Head:** `pkce-constant-time` --- ### 📝 Commits (1) - [`9af6455`](https://github.com/pocket-id/pocket-id/commit/9af6455edc8c73ff3cadd6b379c888226d3feabc) fix: use constant time comparisons when validating PKCE challenges ### 📊 Changes **2 files changed** (+39 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `backend/internal/service/oidc_service.go` (+12 -7) 📝 `backend/internal/service/oidc_service_test.go` (+27 -0) </details> ### 📄 Description This fixes a small potential timing attack --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:12:11 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#1033