Skip to main content
HighContentOWASP A02:2021CWE-598

How to fix: Password Form Uses GET Method

Form with password field uses GET method.

Why it matters

Credentials appear in URL, browser history, and server logs.

GET requests encode form data in the URL query string.

How to fix it

  1. 1Change form method to POST for all forms with sensitive data.

Code examples

Use POST for forms that handle sensitive data

HTML
<!-- BAD: GET puts form data in the URL (logged, cached, shared) -->
<!-- <form method="GET" action="/search-private"> -->

<!-- GOOD: POST for forms with sensitive data -->
<form method="POST" action="/api/submit">
  <input type="hidden" name="_csrf" value="{{ csrfToken }}" />
  <input type="password" name="password" autocomplete="current-password" />
  <button type="submit">Submit</button>
</form>

References

Detected automatically by VulnRadar. The check id is form-method-get-sensitive, stable across every scan so you can filter or diff on it.

See every content check

Questions

How severe is Password Form Uses GET Method?
VulnRadar rates this high severity in the content category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
Does VulnRadar check for this automatically?
Yes. It runs as part of every scan under the check id form-method-get-sensitive, which stays the same between runs so you can filter, diff, or gate CI on it.
Which standards does Password Form Uses GET Method map to?
It maps to CWE-598. In the OWASP Top 10 it falls under A02:2021.

Missing a check?

The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.

Propose a checkHow a check is built

Scan your own site for password form uses get method

VulnRadar runs this check and hundreds more against a URL in seconds. No agent to install, just paste a URL.

Or scan this site as a demoRead the docs

How to fix: Password Form Uses GET Method | VulnRadar