Am I affected?

type your ash_authentication_phoenix version to check

Description

Use of HTTP Request With Sensitive Query String vulnerability in team-alembic AshAuthenticationPhoenix allows someone able to read access logs, proxy logs or browser history to recover a single-use sign-in token and authenticate as its owner.

After a successful password sign-in, AshAuthentication.Phoenix.Components.Password.SignInForm builds the sign_in_with_token path with the freshly issued user.__metadata__.token as a query parameter and redirects the browser to it with a GET. The token therefore travels in the request line, where web servers, reverse proxies, request telemetry and the browser's own history record it, all of which outlive the request and are ordinarily less protected than session storage. The redirect destination is restricted to a local path, so this is not an open redirect; the exposure is the retention of a live credential.

This issue affects ash_authentication_phoenix: from 1.7.0 before 2.17.4 and from 3.0.0-rc.0 before 3.0.0-rc.11; ash_authentication: from 3.10.5 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.

Weaknesses & attack patterns

Weakness

CWE-598 · Use of HTTP Request With Sensitive Query String in catalog → MITRE ↗

Attack patterns

CAPEC-150 · Collect Data from Common Resource Locations MITRE ↗

Affected — Hex / ash_authentication_phoenix Hex.pm ↗ Repository ↗

1.7.0 < 2.17.4 affected
3.0 series 3.0.0-rc.0 < 3.0.0-rc.11 affected
every other version: unaffected
cpe cpe:2.3:a:team-alembic:ash_authentication_phoenix:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm'
source files lib/ash_authentication_phoenix/components/password/sign_in_form.ex
routines 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm':handle_event/3 · 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm':get_redirect_path/3 · 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm':get_auth_path_params/2

Affected — GitHub / team-alembic/ash_authentication_phoenix Repository ↗

903f3a3 and up affected
920257d not affected
ff5ad87 not affected
every other version: unaffected
cpe cpe:2.3:a:team-alembic:ash_authentication_phoenix:*:*:*:*:*:*:*:*
modules · source files · routines
modules 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm'
source files lib/ash_authentication_phoenix/components/password/sign_in_form.ex
routines 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm':handle_event/3 · 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm':get_redirect_path/3 · 'Elixir.AshAuthentication.Phoenix.Components.Password.SignInForm':get_auth_path_params/2

Affected — Hex / ash_authentication Hex.pm ↗ Repository ↗

3.10.5 < 4.15.0 affected
5.0 series 5.0.0-rc.0 < 5.0.0-rc.14 affected
every other version: unaffected
cpe cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*

Affected — GitHub / team-alembic/ash_authentication Repository ↗

eca8cad and up affected
bbf345c not affected
8d8ddd2 not affected
every other version: unaffected
cpe cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*

References

Credits

Peter Ullrich Reporter
Jonatan Männchen / EEF Analyst
James Harton Remediation developer

CVSS breakdown

CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
« All CVEs