Skip to content

🔒 Accept security keys only from the application URL on Userli pages - #1455

Merged
0x46616c6b merged 1 commit into
mainfrom
fix/webauthn-origin-separation
Nov 26, 2026
Merged

0x46616c6b merged 1 commit into
mainfrom
fix/webauthn-origin-separation

Conversation

@t2d

@t2d t2d commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #1415.

Userli and the webmail shared one origin allowlist, so an assertion made on the webmail origin also completed the Userli login.

Attack scenario:

  1. The attacker knows the user's password and starts a Userli login. Userli asks for the security key and issues a challenge.
  2. The attacker runs script on the webmail origin, e.g. through an XSS in Roundcube or a plugin.
  3. That script asks the browser for an assertion over the attacker's challenge. The webmail is under the security key domain, so the browser allows it, and the user touches the key, expecting a webmail prompt.
  4. The script sends the assertion to the attacker, who completes the Userli second factor with it.

A bug in the webmail thus bypassed 2FA on Userli, where passwords, recovery and aliases are managed.

Key registration and the second factor on Userli pages now accept only the application URL. The webmail API is unchanged.

🤖 Generated with Claude Code

@t2d t2d added bug Something isn't working security labels Nov 25, 2026
Userli and the webmail shared one origin allowlist, so an assertion made on the
webmail origin also completed the Userli login. Key registration and the second
factor on Userli pages now accept only the application URL. The webmail API
keeps the full allowlist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@t2d
t2d force-pushed the fix/webauthn-origin-separation branch from d46e28b to a167bdd Compare November 26, 2026 15:58
@t2d t2d changed the title 🔒 Accept security keys from the webmail origin only on the webmail API 🔒 Accept security keys only from the application URL on Userli pages Nov 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

@t2d
t2d marked this pull request as ready for review November 26, 2026 16:32
@0x46616c6b
0x46616c6b merged commit 73d8b2f into main Nov 26, 2026
19 of 20 checks passed
@0x46616c6b
0x46616c6b deleted the fix/webauthn-origin-separation branch November 26, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants