Skip to main content
ContentCritical PriorityPro

Insecure Form Submission

Updated November 2026·SecScanner Team

A form that posts over plain HTTP, sends a password via GET, or sits on an unencrypted page hands user credentials to anyone on the network path.

Results in 1–3 minutes · Free · No signup required

Why It Matters

Credentials submitted over HTTP are readable by every hop between the user and your server — public Wi-Fi, hotel networks, compromised routers. A password sent with GET is worse still: it lands in the URL, the browser history, proxy logs and the `Referer` header of every subsequent request.

How We Check

We parse every `<form>` on the page and flag `action` attributes on `http://`, password fields submitted with `method="get"`, password or credential fields served on an HTTP page, and credential fields sent via GET.

Good vs Bad Values

Good and bad values for Insecure Form Submission
ValueVerdictWhy
<form action="https://example.com/login" method="post">GoodAn HTTPS target and POST. This is the pattern the check expects.
<form action="/login" method="post"> on an HTTPS pageGoodA relative action inherits the page's scheme, so it is secure when the page is.
<form action="//example.com/login" method="post"> on HTTPSGoodA protocol-relative action follows the page's scheme. It is not flagged, but a plain relative path is clearer.
<form action="http://example.com/login" method="post">BadCritical when the form holds a password: the credentials cross the network in clear text.
<form method="get"><input type="password" name="pw">BadThe password ends up in the URL, the browser history, server logs and the Referer header of outgoing links.
Any form with a password field on a page served over http://BadEven with an HTTPS action. A network attacker can rewrite an unencrypted page and point the form anywhere.
<form> with an email input and no method attributeWeakNo method means GET, so the email goes into the URL and the check reports credentials in URL. Add method="post" if the data is not a search term.
<form method="get" action="/search"><input type="search">GoodA search box is meant to be a GET form. It has no credential-like field, so it is not reported.

How to Fix

Serve the whole page over HTTPS and point every form action at an https:// URL or a relative path. Use method="post" for anything carrying credentials. Redirect HTTP to HTTPS and add HSTS so the insecure version is never reached in the first place.

Redirect all plain HTTP to HTTPS and tell browsers to remember it. Nginx:

server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://example.com$request_uri;
}
server {
    listen 443 ssl;
    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
}

Apache:

<VirtualHost *:80>
    ServerName example.com
    RewriteEngine On
    RewriteRule ^ https://example.com%{REQUEST_URI} [R=301,L]
</VirtualHost>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

Forms:

<form action="/login" method="post" autocomplete="on">
  <input type="email" name="email" autocomplete="username" required>
  <input type="password" name="password" autocomplete="current-password" required>
</form>

Rails: config.force_ssl = true. Django: SECURE_SSL_REDIRECT = True, SESSION_COOKIE_SECURE = True, CSRF_COOKIE_SECURE = True. WordPress: set both site addresses to https:// in Settings, add define('FORCE_SSL_ADMIN', true); to wp-config.php, and search the database for stored http:// form URLs. Express behind a proxy: set app.set('trust proxy', 1) and redirect when req.secure is false.

Only turn on HSTS includeSubDomains when every subdomain really serves HTTPS, and add preload only after you have decided you can never go back.

Verify: open DevTools, Network tab, submit the form, and confirm the request URL starts with https:// and the method is POST. Also run curl -sI http://example.com/login and confirm a 301 to HTTPS.

Common Mistakes

  • Moving the login page to HTTPS while the home page, which embeds a small login box, still loads over HTTP.
  • Hard-coding http:// in a form action inside a template or CMS widget, then forgetting it when the site moved to HTTPS.
  • Fixing the form but not the redirect. If http://example.com still answers, a visitor can type it and land on an unencrypted page.
  • Relying on the browser's warning. Most users click through, and a script on the page can bypass it.
  • Leaving an old email capture form without a method. Browsers default to GET and put the address in the query string.

Frequently Asked Questions

What is Insecure Form Submission?

A form that posts over plain HTTP, sends a password via GET, or sits on an unencrypted page hands user credentials to anyone on the network path.

Why does Insecure Form Submission matter for website security?

Credentials submitted over HTTP are readable by every hop between the user and your server — public Wi-Fi, hotel networks, compromised routers. A password sent with GET is worse still: it lands in the URL, the browser history, proxy logs and the `Referer` header of every subsequent request.

How do I fix Insecure Form Submission issues?

Serve the whole page over HTTPS and point every form action at an https:// URL or a relative path. Use method="post" for anything carrying credentials. Redirect HTTP to HTTPS and add HSTS so the insecure version is never reached in the first place.

Related Security Checks

Check Your Website Now

Run a free security scan to check for Insecure Form Submission issues and 61 other security checks.

Scan Your Website Free