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 8138479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:30:24+00:00 2026-06-06T11:30:24+00:00

I want to enable the user to log in on a http page with

  • 0

I want to enable the user to log in on a http page with out redirecting them to https. This is so that the user does not loose state on the page they are viewing.

When the user clicks on something that requires login, a modal login form pops over the page asking for details. They can then login using ajax and the modal form disappears without state being lost. However this is not secure, the password is being sent over plain text.

I could use postMessage to send the username/password to a hidden iframe with a location loaded using https. This then sends the login request securely and posts success/error back to the main page.

Are there any security considerations I am missing with this scenario.

In particular, man in the middle. Am I right in thinking that the http javascript could be substituted using man in the middle and this could be used to capture the password and sent elsewhere before it even reaches the https iframe?

  • 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-06-06T11:30:25+00:00Added an answer on June 6, 2026 at 11:30 am

    In case you are considering an man-in-the middle attacker you have to use only https. Everything else would be insecure as the attacker would have the ability to rewrite all links to https resources to regular https

    Or if your page does not allow http for that particular resources the attacker could simple run an proxy accepting http from the client and change it to https while sending it to the server.

    Even without man-in-the-middle attacks an attacker could “steal” an authenticated session (usually the cookies) the way FireSheep or DroidSheep do. The password would be safe in this case but the attacker could still do all the things on your web page authenticated as the attacked different user.

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

Sidebar

Related Questions

I want to enable the user to select a video file from the on-device
I want to enable all disabled commands in Emacs such as downcase-region - that
SKIP TO UPDATE 3 I want to enable the Seam debug page on Weblogic
In my app the user generates text content. I want to enable the user
I was able to get the user to log in, and I want to
In my Activity when the user says they want to enable notifications I call
I want to do the following things: on web page A, user input the
I want enable user to select a photo from a photo library on his
Possible Duplicate: How do i enable the service menu programmatically with out the user
I want to enable an user to be able to communicate with other users

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.