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.
What happened
issis 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 withoutisswhen 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 wrongissbut not a missing one.How to see it
Read against
docs/freshat 4636e6d, the code at: crates/group-host/src/console_login.rs:460. Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
Refuse the callback when
issis 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.