Skip to content

Fix password disclosure via serverForUri and stale cookie reuse after logout/401 - #1824

Open
isc-klu wants to merge 11 commits into
intersystems-community:masterfrom
isc-klu:kill-accessToken
Open

Fix password disclosure via serverForUri and stale cookie reuse after logout/401#1824
isc-klu wants to merge 11 commits into
intersystems-community:masterfrom
isc-klu:kill-accessToken

Conversation

@isc-klu

@isc-klu isc-klu commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1825 and #1823.

#1825 — serverForUri now clears the Authorization object before returning it, so it only carries a resolved password when one is set in plaintext in settings.json. AtelierAPI.config now clones the Authorization object before returning it, so callers invoking .resolve()/.clear() on the returned object can no longer mutate the shared, internal one.

#1823 — logoutOfSessions and the 401 handler in AtelierAPI.request() now delete the corresponding cookiesMap entry, so a stale/invalidated cookie can't keep being resent on subsequent requests.

Also included: a display-string fix for the connection URL shown when connecting a folder to a server namespace — it had an extra / hardcoded before pathPrefix, which produced a doubled slash since pathPrefix already includes its own leading /.

@isc-klu isc-klu changed the title TODO Fix password disclosure via serverForUri and stale cookie reuse after logout/401 Aug 13, 2026
@isc-klu
isc-klu requested a review from gjsjohnmurray August 13, 2026 14:59
@isc-klu
isc-klu marked this pull request as ready for review August 13, 2026 14:59
@isc-klu
isc-klu requested a review from isc-bsaviano as a code owner August 13, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

serverForUri API discloses connection password to consumer extensions without user consent

2 participants