Bug 3399 - SSHD debug sends config although there is no receiver
Summary: SSHD debug sends config although there is no receiver
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 8.9p1
Hardware: Other Windows 10
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-08 10:32 AEDT by balu
Modified: 2022-03-18 13:58 AEDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description balu 2022-03-08 10:32:04 AEDT
When SSHD is run in the debug mode, there is no need to send the config on config_s[0] as there is no process listening on the other end.

https://github.com/openssh/openssh-portable/blob/166456cedad3962b83b848b
1e9caf80794831f0f/sshd.c#L1309
Comment 1 Damien Miller 2022-03-18 13:58:02 AEDT
I don't think this is correct. Debug mode disables fork-per-connection but not reexec:

debug1: fd 5 clearing O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug3: send_rexec_state: entering fd = 8 config len 2635
debug3: ssh_msg_send: type 0
debug3: send_rexec_state: done
debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8
debug3: recv_rexec_state: entering fd = 5
debug3: ssh_msg_recv entering
debug3: recv_rexec_state: done
debug2: parse_server_config_depth: config rexec len 2635