A gap in the NSClient agent occurs when a system connects to an access point with a Captive Portal and then switches to a network that already has internet connectivity, causing the Captive Portal to remain open. This behavior can be abused via a rogue access point to facilitate access to malicious sites or the exfiltration of data.