Skip to content

Commit

Permalink
Deny SSH2-proxy connections with no username
Browse files Browse the repository at this point in the history
  • Loading branch information
mezantrop committed Mar 11, 2024
1 parent 14c3884 commit c403a1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

* **2024.03.06 Current**
* **2024.03.11 Current**
* `ssh2.c`: Deny SSH2-proxy connections with no username
* `ssh2.c`: Do not try manual authentication is agent-authentication was successful
* `ssh2.c`: Variable `proxy_ssh_force_auth` in `ts-warp.ini` to force or negotiate SSH2 authenticaton methods
* `ts-warp.c`: CLI options to disable `TS-Warp` port listeners: `-T 0:0`, `-S 0:0` and `-H 0:0`
Expand Down
5 changes: 5 additions & 0 deletions ssh2.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ LIBSSH2_CHANNEL *ssh2_client_request(int socket, LIBSSH2_SESSION *session, struc
int rc = 0;


if (!user) {
printl(LOG_WARN, "No username specified: unable to login into SSH2-proxy!");
return NULL;
}

if (libssh2_session_handshake(session, socket)) {
printl(LOG_WARN, "Unable to perform SSH2 handshake");
return NULL;
Expand Down

0 comments on commit c403a1c

Please sign in to comment.