A reverse proxy that adds Basic credentials to every request also adds
them to a form another site's page submits. No session cookie arrives, so
CheckCSRF skips the request, and the credentials admit the write. On a
real server behind such a proxy, a page on another site created an API
token and added its own origin to the CORS allow-list. The same request
under secret-header proxy auth was already refused.
Writes carrying Basic credentials now pass the origin check proxy auth
uses. An origin the operator listed exactly stays admitted, and "*" grants
nothing, as with the CORS response. Clients sending no browser metadata,
such as curl and the eval and qualification clients, are untouched.
A browser on plain HTTP sends no Sec-Fetch-Site, and a proxy that rewrites
Host then makes Pulse's own pages look foreign. Without an exception this
fix would have refused every write from such a browser, and proxy auth
already did. The check now accepts the web client's marker on that path,
because no Pulse CORS response allows that header, and a test pins that.
Minting a setup token skipped both checks because it needs no session
CSRF token. The token is a credential, so the origin checks now apply.
Every request authenticated with Basic credentials created a session,
persisted it and wrote a login audit event. The auth check runs twice on
a routed request, so one call took two of the user's ten session slots.
Anything polling with Basic credentials, such as a script or a dashboard
widget, kept signing its owner's browser out.
An API client's Basic credentials now authenticate one request and issue
nothing, as an API token does. Only Pulse's own web client, which marks
its API calls, still gets a session: a browser behind a proxy that
forwards Basic credentials relies on it, and without it pays for a
password check per call and loses its Settings pages.
A cookie reaching the Basic branch was rejected, and handlers read the
username from the cookie, so it is still retired. A password used only
over Basic must leave a trace, so the first call per organization, user
and address is audited, then once a day. Failures stay audited.