CVE-2026-129703: vulnerability-lookup: Feed key or API key authentication creates full web session bypassing password and 2FA
In the vulnerability-lookup web application, the authentication decorators for feed-key requests (authfeedkeyfunc in website/decorators.py) and API-key requests (authfunc in website/web/api/v1/common.py) called Flask-Login's loginuser() function. This caused the HTTP response to a request authenticated solely by a feed key (supplied as the X-FEED-KEY URL parameter) or an API key (supplied as the X-API-KEY header) to set a session cookie that grants full authenticated access to every page in the application, without requiring a password or two-factor authentication.
The practical impact is that any party possessing a leaked feed URL (a common occurrence, as feed URLs are shared with RSS readers) or an API key could obtain a valid web session for the associated account. This session provides access to the user's account page, which exposes the API key and other profile data, and for accounts with the administrator role, access to the /admin interface, enabling full administrative control of the application.
The vulnerability affects all users whose feed key or API key is exposed. No prior authentication, user interaction, or special network conditions are required; a single HTTP request with the token is sufficient to establish the session. The session persists until it expires, and because it is not bound to the original credential (a related CWE-613 issue noted by the developers), revoking the feed key or API key does not invalidate the already-created session.
The fix replaces the loginuser() call with assignment to g.loginuser, which Flask-Login's currentuser property reads for the current request only, without writing any session cookie. The affected views remain unchanged and continue to see the authenticated user for the single request.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the feed-key and API-key authentication decorators, replace the Flask-Login login_user() call with assignment of the authenticated user to Flask's request-scoped g._login_user attribute.