OIDC: settings an unverified-email sign-in sets survive the owner's email-link confirm #85

Closed
opened 2026-11-13 01:30:52 +00:00 by jfro · 3 comments
Owner

Follow-up to #83 (left out of v1.6.1 on purpose).

With #83, an OIDC sign-in whose email isn't verified (or whose provider omits email_verified) makes an unconfirmed account. When the address's real owner later signs in by email link, the confirm unlinks that sign-in's identities and deletes its API keys, so it can't get back in.

What it doesn't reset is the per-user settings set while the account was the first signer's: outbound ones like a backup destination, mirrors, OCR provider config, and a Vikunja server and token. Whoever made the account could have pointed these at servers they control, and they keep sending the owner's data there after the confirm.

When it matters: a multi-user install whose IdP lets users claim an address without verifying it, and the attacker signs in with the owner's address before the owner ever does.

Why not just reset them on confirm: an owner whose provider simply omits email_verified is in the same state, and would lose their own settings the first time they use an email link.

Ideas: show the owner what's set on confirm and ask them to keep or clear it, or clear only outbound destinations and say so.

Follow-up to #83 (left out of v1.6.1 on purpose). With #83, an OIDC sign-in whose email isn't verified (or whose provider omits `email_verified`) makes an unconfirmed account. When the address's real owner later signs in by email link, the confirm unlinks that sign-in's identities and deletes its API keys, so it can't get back in. What it doesn't reset is the per-user settings set while the account was the first signer's: outbound ones like a backup destination, mirrors, OCR provider config, and a Vikunja server and token. Whoever made the account could have pointed these at servers they control, and they keep sending the owner's data there after the confirm. When it matters: a multi-user install whose IdP lets users claim an address without verifying it, and the attacker signs in with the owner's address before the owner ever does. Why not just reset them on confirm: an owner whose provider simply omits `email_verified` is in the same state, and would lose their own settings the first time they use an email link. Ideas: show the owner what's set on confirm and ask them to keep or clear it, or clear only outbound destinations and say so.
Author
Owner

Jeremy chose to fix this in 1.6.1, so it's folded into the #83 branch (fix-83-oidc-unverified @ c6a850f): the owner's email-link confirm of an unverified-made account now also clears backup, Vikunja, LanguageTool and OCR provider settings and the reMarkable pairing. This can close once #83 merges.

Jeremy chose to fix this in 1.6.1, so it's folded into the #83 branch (`fix-83-oidc-unverified` @ c6a850f): the owner's email-link confirm of an unverified-made account now also clears backup, Vikunja, LanguageTool and OCR provider settings and the reMarkable pairing. This can close once #83 merges.
Author
Owner

Covered by PR #90 (#90, head c6a850f): its F6 fix clears the outbound settings (backup, Vikunja, LanguageTool, OCR provider, reMarkable pairing) on the owner's email-link confirm, which is all this issue asks for. PR #90 has no Closes #85, so I'll close this by hand once #90 merges.

Covered by PR #90 (https://git.knope.dev/jfro/rm-analyzer/pulls/90, head c6a850f): its F6 fix clears the outbound settings (backup, Vikunja, LanguageTool, OCR provider, reMarkable pairing) on the owner's email-link confirm, which is all this issue asks for. PR #90 has no `Closes #85`, so I'll close this by hand once #90 merges.
Author
Owner

Fixed by PR #90 (merged as 5eea6ca): outbound settings are cleared when the real owner confirms the email link. Closing.

Fixed by PR #90 (merged as 5eea6ca): outbound settings are cleared when the real owner confirms the email link. Closing.
jfro closed this issue 2026-11-13 11:41:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer#85
No description provided.