Skip to content

fix: [OCISDEV-1467] more strict check of wildcard domains in ocm - #807

Merged
jvillafanez merged 1 commit into
owncloud:mainfrom
jvillafanez:ocm_share_domain
Nov 13, 2026
Merged

jvillafanez merged 1 commit into
owncloud:mainfrom
jvillafanez:ocm_share_domain

Conversation

@jvillafanez

@jvillafanez jvillafanez commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Make the domain check of the GetInfoByDomain function more strict. In order:

  1. Exact match
  2. Exact match without port
  3. Wildcard match

The wildcard match follows similar rules to the DNS wildcards:

  • Wildcard must be in the leftmost subdomain, otherwise it will be a regular character.
  • Wildcard must be in a subdomain. *.server.com and *.abc.server.prv are allowed, but not *.com
  • In case of multiple wildcards, only the leftmost will be interpreted as such; any other * will be interpreted as a regular character.
  • The wildcard will match only the specific subdomain, but not any inner subdomain. *.server.prv will match s1.server.prv and abc.server.prv, but not server.prv nor abc.s1.server.prv

@jvillafanez jvillafanez self-assigned this Nov 11, 2026
@jvillafanez
jvillafanez requested a review from a team as a code owner November 11, 2026 17:44
@kw-security

kw-security commented Nov 11, 2026 •

Copy link
Copy Markdown

⚠️ Snyk checks are incomplete.

Status Scan Engine Critical High Medium Low Total (0)
⚠️ Open Source Security 0 0 0 0 See details
⚠️ Licenses 0 0 0 0 See details
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@jvillafanez jvillafanez changed the title fix: more strict check of wildcard domains in ocm fix: [OCISDEV-1467] more strict check of wildcard domains in ocm Nov 11, 2026
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.

3 participants