~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Assistant redirect URIs over https may carry a fragment

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

may_return_to refuses a fragment only on an app's own scheme. https://app.test/cb#x is registered and used, though RFC 6749 §3.1.2 says a redirect URI must not have one. The code still goes in the query, so nothing leaks; the rule is just applied unevenly.

How to see it

Read against docs/fresh at 4636e6d, the code at: crates/group-host/src/assistants.rs:378-381. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Refuse a fragment for every scheme. Move the url.fragment().is_none() check out of the match.

Where

The host, as built from 4636e6d. Found while checking the docs against the code.