You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// from forwradserverport.go, effectively when pivoting and exposing the server port we have to just trust whatever structure the client gives us for our remote/local addresses,
257
+
// we dont want someone being able to bypass ip allow lists, so mark it as untrusted
err=fmt.Errorf("admin with supplied username (%s) denied login: %s", strconv.QuoteToGraphic(conn.User()), err)
274
+
ifisUntrustWorthy {
275
+
err=fmt.Errorf("admin (%s) denied login: %s: cannot connect admins via pivoted server port (may result in allow list bypass)", strconv.QuoteToGraphic(conn.User()), err)
err=fmt.Errorf("user (%s) denied login: %s: cannot connect users via pivoted server port (may result in allow list bypass)", strconv.QuoteToGraphic(conn.User()), err)
294
+
}
295
+
296
+
returnnil, err
285
297
}
286
298
299
+
// not going to check isUntrustWorthy down here as these are often the reason we're pivoting into a place anyway
300
+
287
301
//If insecure mode, then any unknown client will be connected as a controllable client.
288
302
//The server effectively ignores channel requests from controllable clients.
0 commit comments