Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7071713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:43:16+00:00 2026-05-28T05:43:16+00:00

I have a login form that is hidden on every page and shows itself

  • 0

I have a login form that is hidden on every page and shows itself onClick when needed instead of setting off a new page request.

It has been brought to my attention that in order for a login to really be secure the form action should point to a https page but also the login form itself should be on a https page.

Is there a way I can make the pop up login form secure without making the whole site https?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:43:16+00:00Added an answer on May 28, 2026 at 5:43 am

    Using an AJAX pop-up (or an iframe) that goes (in theory) to https:// on an http:// page presents two problems:

    1. An attacker could intercept the page and replace the link with his own.
    2. This prevents the user from checking to which site it’s connected to.

    The 1st problem is related to this question (not specific to AJAX pop-ups, but for having the login page over plain HTTP, also discussed on Security.SE). This goes against this OWASP recommendation:

    The login page and all subsequent authenticated pages must be
    exclusively accessed over TLS. The initial login page, referred to as
    the “login landing page”, must be served over TLS. Failure to utilize
    TLS for the login landing page allows an attacker to modify the login
    form action, causing the user’s credentials to be posted to an
    arbitrary location.

    Essentially, a MITM could modify the page you use to server that login box to replace it with their own: the user wouldn’t be able to notice the difference (at least until it’s too late).

    The 2nd problem is that it’s actually a good thing to see you have connected (and also about to connect for the next step) to the website you want in the address bar. Anyone can have a valid https:// site: mybank.example.com and attackers.example.com could both have a valid certificate issued by a trusted authority.
    If I connect to my bank, I want to know it’s to my bank I’m connected over HTTPS. Sending credentials to a https:// site from a popup or an iframe hides the real target website.

    This problem can also happen when the initial page is served over HTTPS, as unfortunately demonstrated by the 3-D Secure system (these people should know better, really!).

    In short, don’t use an iframe or a popup, and do serve the page where you present the login form over HTTPS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a login form that has Username and password as inputs from user
The problem I am encountering is that for my login form I have to
I have a form on my website that does the login. To make the
I have a login form, which needs to be re-directed to the main page
I have a form that i am trying to submit after the page loads
I have simple login form in my website. In given requirements stands, that password
I have a form that outputs a cookie value to a hidden input box
In a Couchapp, I would like to have a login form that works without
I have a form that I use for login purposes here: <form id =
I am trying to submit a login form on a web page that looks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.