A session fixation issue exists in the CLI login flow of nerves hub web. An unauthenticated attacker can obtain an API token for another user's account by persuading them to open a crafted login link and click a confirmation button. The process begins when a request is made to the 'POST /api/auth/cli session' endpoint, which returns a polling token and a confirmation URL. If a signed-in user opens this URL and confirms, the `verify cli session token/2` function creates an API token for that user. This token is then returned to the attacker via the 'GET /api/auth/cli session/<token>' endpoint. The confirmation code provided during this process is only displayed and not verified, failing to ensure that the person confirming the session is the same person who initiated the login.