Skip to main content
Menu
Advisories

veans downgrades HTTPS to HTTP during server discovery on init and login

GHSA-WQW2-RGWV-99QXPublished Updated GitHub

Description

Affects all veans versions (veans has no tagged release yet).

Summary

An on-path attacker who blocks https://host and https://host:3456 makes veans init/veans login fall back to plain http and captures the posted password or bot token. The http base URL is then saved, so all later traffic stays cleartext.

Details

  • serverCandidates adds http candidates after an explicit https:// URL (veans/internal/client/discover.go:119-121), and a bare hostname also falls back to http (veans/internal/client/discover.go:88).
  • The first response that parses as server Info wins, with no identity check (veans/internal/client/discover.go:63).

Impact

Theft of the user's password, TOTP code or token, and persistent cleartext API traffic, for a user on a network the attacker controls.

Fix

Try http only for loopback hosts or a user-typed http://; never as a fallback for https:// or a bare hostname.

This is separate from the planned veans trust gate (a confirmed, scheme-keyed trust record per origin). That gate catches a downgrade only if the user reads the http:// in the prompt.

Found via internal security review (03 #0, deep #7).

Affected versions

References

GitHub · go-vikunja/vikunja