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

The console's sign-in accepts a callback that has no `iss`

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

iss is compared only when it is present. Atproto's OAuth profile requires authorization servers to send it (authorization_response_iss_parameter_supported). @atproto/oauth-client refuses a callback without iss when the server advertises the parameter, but this host accepts one. That weakens the mix-up defence. The test cases (console_login.rs:398) cover a wrong iss but not a missing one.

How to see it

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

What you expected

Refuse the callback when iss is absent, at least when the server's metadata advertised the parameter. That metadata is already read at the start.

Where

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