OIDC: settings an unverified-email sign-in sets survive the owner's email-link confirm #85
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/rm-analyzer#85
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_verifiedis 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.
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.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 noCloses #85, so I'll close this by hand once #90 merges.Fixed by PR #90 (merged as
5eea6ca): outbound settings are cleared when the real owner confirms the email link. Closing.