1 suggestion
Earlier concerns neither republished nor resolved: 1 minor finding. See the Run archive for their assessments.
Optional improvements
[suggestion] · SAFECOOKIE failure tests miss continued authentication
The AUTHCHALLENGE-error and invalid-server-nonce tests check only warning logs, so they would not catch a regression that preserves the warning but sends AUTHENTICATE afterward.
Location: test/functional/feature_torcontrol.py:486 (head).
Details and suggested fix
test_safecookie_authchallenge_error and test_safecookie_invalid_server_nonce stop the mock immediately after observing their expected warning, without checking for further commands. The nonce case gives a concrete counterexample: the fixture supplies a valid SERVERHASH over its advertised 31-byte nonce. Removing only the return after the nonce-length warning in authchallenge_cb would preserve the warning, pass the hash comparison, and send AUTHENTICATE without failing the test's assertions. After each failure reply, add ensure_for(duration=2, f=lambda: len(mock_tor.received_commands) == 2), as the server-hash-mismatch test already does. Neither current failure path disconnects, and the manual-mode mock keeps the connection open, so the check does not conflict with an expected reconnect.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [minor]: Guarantee that the fabricated server hash mismatches