Skip to content

Store guest grantees as canonical ASCII mail addresses - #862

Merged
aduffeck merged 1 commit into
opencloud-eu:mainfrom
aduffeck:guest-id-canonical-ascii
Oct 7, 2026
Merged

aduffeck merged 1 commit into
opencloud-eu:mainfrom
aduffeck:guest-id-canonical-ascii

Conversation

@aduffeck

@aduffeck aduffeck commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

CreateShare now normalizes guest mail addresses: the local part must be ASCII, international domains are converted to punycode and the result is lowercased. Guest ID comparisons and filenames only lowercase A-Z, so characters like 'İ' or the Kelvin sign no longer collapse onto ASCII IDs. The guestlinks auth manager rejects non-ASCII grantees.

Fixes opencloud-eu/opencloud#3648

CreateShare now normalizes guest mail addresses: the local part must be
ASCII, international domains are converted to punycode and the result is
lowercased. Guest ID comparisons and filenames only lowercase A-Z, so
characters like 'İ' or the Kelvin sign no longer collapse onto ASCII
IDs. The guestlinks auth manager rejects non-ASCII grantees.

@maki5 maki5 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aduffeck
aduffeck merged commit 7148a82 into opencloud-eu:main Oct 7, 2026
18 of 19 checks passed
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.

guestlinks: prevent homoglyph and lowercase-collision attacks

2 participants