medium · M1 · MASVS-NETWORK-1 · PTKD-DYN-AUTH-IN-URL

    Credential passed in a URL

    A sensitive value (password/token/api key) was sent as a URL query parameter, where it lands in logs, history, and Referer headers.

    How it is exploited

    Credentials or tokens appeared in a URL query string. URLs are logged everywhere: server access logs, proxies, CDNs, browser history, and Referer headers, so the secret multiplies across systems.

    Why it matters

    Session or API credentials persist in plaintext logs owned by third parties.

    How to fix it

    1. Move the credential to an Authorization header (or request body for form posts).
    2. Invalidate tokens that were already sent via URL and scrub them from your own logs.

    Does your app have this?

    PTKD checks your build or your source project for PTKD-DYN-AUTH-IN-URL and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M1)