Note
Would you kindly spend 5 minutes to give your feedback on your deployment and what you'd like to see in Warpgate?
The GitOps support was the most asked for feature in the survey proposed by users just like you.
Backwards-incompatible and behavioral changes are marked ⚠️
Security fixes
Moderate GHSA-44c9-68w4-qf5j - Kubernetes proxy forwards client-supplied X-Remote-* request-header identities
Suggested action: upgrade if using Kubernetes targets with certificate authentication
Requires: a Kubernetes target cluster whose --requestheader-client-ca-file trusts the certificate. kubeadm and k3s use a separate front-proxy CA, so they are not affected by default.
Warpgate forwarded client-supplied X-Remote-User, X-Remote-Group and X-Remote-Extra-* headers to Kubernetes targets. If the API server trusts the target's client certificate for request-header authentication, a user with access to the target could choose the Kubernetes identity their requests run as, including system:masters. These headers are now dropped.
Moderate GHSA-vv28-4wq5-g7q8 - Self-service tickets keep working after the role that granted them is revoked or expires
Suggested action: upgrade if self-service tickets are enabled
Requires: activated ticket self-service and auto-approval
A self-service ticket requested by a user who already had a role on the target was approved automatically and never checked against roles again. It kept opening the target after the role was removed or a time-limited role assignment expired. Auto-approved tickets now work only while a role still grants the user that target.
Moderate GHSA-fpvw-5j34-323q - LDAP user deletion leaves synchronized SSH keys valid
Suggested action: upgrade if using LDAP-linked users
When a linked user's LDAP object was deleted, the SSH keys previously synced from LDAP were kept and still accepted for login. Keys are now removed once the user is gone from LDAP.
Moderate GHSA-6g78-qqp6-mhcv - HTTP proxy security issues: X-Forwarded-* spoofing, ticket forwarding and SSO logout CSRF
Suggested action: upgrade if using trust_x_forwarded_headers or SSO
- With
trust_x_forwarded_headersenabled, a client could spoof its IP, host and protocol by sending its ownX-Forwarded-*header line next to the proxy's. Only the last header line is now used.
Requires:http.trust_x_forwarded_headers: truebehind a reverse proxy that adds its own header line instead of appending to the client's. - ⚠️
/@warpgate/api/sso/logoutacceptedGET, so any site could log users out. It now requiresPOST.
Moderate GHSA-687f-c4c8-7hh9 - Unauthenticated SSH public-key offers force unbounded LDAP/DB work and bypass bruteforce protection
Suggested action: upgrade if using LDAP-linked users or login protection with SSH
Requires: LDAP-linked users.
Each public key an SSH client offered before authenticating triggered a full credential check, including an LDAP search for LDAP-linked users. Offers also skipped IP blocks and lockouts. An unauthenticated client could flood Warpgate's database and LDAP server from a single connection. Offers no longer resync LDAP keys, and they are refused from blocked IPs.
Moderate GHSA-jw77-g2vh-4p4r - Authenticated SSH user can grow Warpgate's memory with pending port-forward opens during the approval wait
Suggested action: upgrade if using SSH targets with admin approval
Requires: an SSH target with admin approval required, and an authenticated user who can connect to it.
Port-forwarding channels opened while a session waited for admin approval were queued with no limit until the approval timeout. The queue is now capped.
Moderate GHSA-r86f-pgmf-4c7f/GHSA-q59c-j6jj-x756 - A connected RDP client can pin memory through an unbounded virtual channel
Suggested action: upgrade if using RDP
Requires: An authenticated user with access to an RDP target.
Virtual channel messages (e.g. the clipboard) were reassembled with no size cap. A client could declare a message of up to 4 GiB and never finish sending it, so a few connections could get the process killed. Messages are now capped at 64 MiB.
Low GHSA-9c2p-c9r6-j5xx - SCP recording exemption and SSH public-key offers bypass audit and bruteforce checks
Suggested action: upgrade if you've disabled SCP recordings due to storage constraints, or use login protection or per-user allowed_ip_ranges
With record_scp: false, any exec command starting with scp skipped recording and command detection, including scp ...; <anything>. Only plain scp -t / scp -f transfers are exempt now.
Changes
- fixed #2787 - SSO: a new per-provider
match_by: subjectoption matches users by the IdP'ssubclaim instead of their e-mail (default staysemail). By @vdhome-dev in #2814 - GitOps: the sync history shows exact changes, and saving the settings tests them, and the settings page can generate webhook secrets, in e419220
- Helm: new
setup.rdpandsetup.vncvalues expose the RDP and VNC listeners (chart 0.3.0), in a292021
Security hardening
- ⚠️ Live tickets approved with the admin token are migrated to need role access, the same as auto-approved tickets, in 313b98c
- Header filtering treats
_the same as-, soX_Remote_Userand similar spellings are dropped as well, in e4d9f8b - A user lockout that expired but was not yet cleaned up no longer stops the user from being locked again, in 045d925
- Caps: 10 keyboard-interactive rounds from an SSH target, 256 open channels per web SSH session, and 60s to connect to MySQL/PostgreSQL targets, in 137c007
- The database directory now gets the same permission checks as the config file, in 64ab9e3
Fixes
- fixed #2644 - RDP: reconnecting to an xrdp session that resumes an existing session no longer fails, in 857d946
- fixed #3006 - Admin UI: creating a target requires the
targetsCreatepermission instead ofadminRolesManage, in 53eee3d
Full Changelog: v0.31.0...v0.31.1