on a 401 with error="use_dpop_nonce", nonce is set to the DPoP-Nonce header and the loop continues while nonce.is_none(). - If the account's server sends the challenge without the header, nonce stays None and the loop has no bound. It sends requests forever, and the move request never returns. This happens with a broken server, or a hostile one that the person moving the account chose. - If a nonce was already taken and the server asks for a fresh one after the token is renewed, the 401 is passed back as a failure. - The nonce is not kept between calls, so every call to the account's server costs an extra round trip.
How to see it
Read against docs/fresh at 4636e6d, the code at: crates/group-host/src/account_move.rs:303-308. Paths are under crates/group-host/src unless they say otherwise. Severity: medium.
What you expected
Count retries (one nonce retry and one renewal per call) rather than keying on nonce.is_none(). Treat a challenge that has no nonce as a failure. Keep the last nonce on the Move, and update it from every response's DPoP-Nonce.
Where
The host, as built from 4636e6d. Found while checking the docs against the code.
What happened
on a 401 with
error="use_dpop_nonce",nonceis set to theDPoP-Nonceheader and the loop continues whilenonce.is_none(). - If the account's server sends the challenge without the header,noncestaysNoneand the loop has no bound. It sends requests forever, and the move request never returns. This happens with a broken server, or a hostile one that the person moving the account chose. - If a nonce was already taken and the server asks for a fresh one after the token is renewed, the 401 is passed back as a failure. - The nonce is not kept between calls, so every call to the account's server costs an extra round trip.How to see it
Read against
docs/freshat 4636e6d, the code at: crates/group-host/src/account_move.rs:303-308. Paths are undercrates/group-host/srcunless they say otherwise. Severity: medium.What you expected
Count retries (one nonce retry and one renewal per call) rather than keying on
nonce.is_none(). Treat a challenge that has no nonce as a failure. Keep the last nonce on theMove, and update it from every response'sDPoP-Nonce.Where
The host, as built from 4636e6d. Found while checking the docs against the code.