Annual Account Security Review: Make Your Password-Change Page Discoverable

Configure a well-known change-password URL, verify HTTPS redirects and signed-out behavior, and protect the underlying account security flow.

Published
Reading time
5 min read
Annual Account Security Review: Make Your Password-Change Page Discoverable
On this page

A well-known change-password URL gives browsers and password managers a predictable starting point for directing users to an account’s password-change page. As part of an annual account security review, you can add the endpoint, check its redirects, and verify what happens when a user is signed out.

This guide could not verify the Web Application Security Working Group specification or current browser and password-manager documentation, and its commands were not executed. Consult those documents and test your supported clients before relying on this setup for compatibility or conformance.

Key Takeaways

  • Serve /.well-known/change-password on the HTTPS origin associated with the account.
  • Redirect it to the site’s existing password-change page; do not create a second password-change flow just for discovery.
  • Check the redirect chain and the signed-out experience, including the return to the intended page after login.
  • Discovery is not a security control: authentication, reauthentication, CSRF protection, and account-recovery safeguards still matter.

What is a well-known change-password URL?

The path /.well-known/change-password is a predictable location at a website’s origin. A supporting client can navigate there instead of guessing where the site puts its account-security settings. The site can then redirect the user to the appropriate page.

For example, a site using https://example.com might redirect the well-known path to /account/security/password. The exact destination depends on the application. If accounts are managed on a different origin, check which origin your clients associate with saved credentials and configure discovery there as appropriate.

The endpoint helps users find a page; it does not change a password by itself. Client support and the details of how a client presents the link should be checked against the clients you support.

Advertisement

Add a redirect to the password-change page

First identify the real page where a signed-in user can change a password. Confirm that it is served over HTTPS and that it works without relying on a link from the well-known endpoint.

The following is an illustrative Nginx configuration for an existing HTTPS server block. Replace the destination with your application’s actual path:

location = /.well-known/change-password {
    return 302 /account/security/password;
}

The exact-match location prevents this rule from catching unrelated paths. The relative destination stays on the same origin. Configure the redirect at the application, proxy, or hosting layer that receives requests for the account origin; avoid conflicting rules in multiple layers.

Check the configuration with nginx -t before applying it using your normal deployment process. This example assumes that TLS and the destination route are already configured; it is not a complete Nginx server configuration. The precise redirect behavior required for a particular client or specification revision should be verified before deployment.

Verify the endpoint and sign-in flow

Use a test account and replace example.com with your own account origin. Start by requesting the well-known path without automatically following redirects:

curl --silent --show-error --connect-timeout 10 --max-time 20 \
  --dump-header - --output /dev/null \
  https://example.com/.well-known/change-password

Inspect the response status and Location header. For the Nginx example, expect a redirect to /account/security/password. A relative location is resolved against the current URL. If the response is not what you expect, check proxy rules, application routing, and caches before changing the endpoint.

Request the destination separately, again without following redirects automatically:

curl --silent --show-error --connect-timeout 10 --max-time 20 \
  --dump-header - --output /dev/null \
  https://example.com/account/security/password

Inspect each subsequent redirect in the same way. Confirm that the chain stays on HTTPS and reaches only intended hosts. Curl verifies HTTPS certificates by default; investigate certificate errors rather than bypassing verification. A command-line request without cookies normally exercises a signed-out path, but it does not establish that the interactive login flow works.

Finally, use a signed-out browser session to visit the well-known URL:

  1. Confirm the user reaches the password-change page or an appropriate sign-in prompt.
  2. Sign in with a test account and check whether the application returns the user to the intended page, if that is the designed flow.
  3. Confirm that the page requires the expected reauthentication before accepting a change.
  4. Test the password-manager and browser clients you support. Do not assume that a successful manual navigation proves client integration.

If login uses a return URL, restrict it to approved destinations so it cannot become an open redirect. Avoid putting credentials or other sensitive information in redirect URLs.

Advertisement

Protect the actual password-change flow

The well-known endpoint may be publicly discoverable, but the operation behind it must remain protected. Require an authenticated session and appropriate reauthentication before changing a password. Protect state-changing requests against CSRF, apply suitable rate limits, and use your established password storage and session-security practices.

Review account recovery separately: a secure change-password page cannot compensate for a recovery flow that lets an attacker take over an account. Test MFA and recovery behavior against your organization’s policy, and avoid responses that unnecessarily reveal whether an account exists.

Common Mistakes

  • Redirecting to a generic homepage. Send users to the actual password-change experience, or to a sign-in flow that can safely lead there.
  • Testing only while signed in. A password manager may open the link in a session where the user is not authenticated.
  • Assuming one origin covers every credential. Verify the origin associated with the account and the client’s saved login.
  • Following redirects without inspecting them. Check each hop for unintended hosts, HTTP downgrades, loops, and broken destinations.
  • Treating discovery as authorization. A public redirect must not grant access to the protected operation.

Best Practices

Include the endpoint in your annual review and in deployment checks when account routes or proxy rules change. Keep the redirect destination stable, test with a disposable or dedicated test account, and document which clients and signed-out flows you verified. Recheck the relevant specification and client documentation when compatibility requirements change.

Conclusion

A small redirect can make a password-change page easier for supporting clients to find. Verify the HTTPS redirect chain and signed-out journey, then keep the security controls on the password-change and recovery flows themselves.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.