Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    817
    Plugin Contributions
    0

    Default How to redirect LOGIN.HTML to a secure connection?

    We are trying to be PCI compliant, and one of their sticking points is that the LOGIN SIDEBOX is being displayed over an insecure HTTP connection. We told them that it shouldn't matter......that even though the login form is DISPLAYED on an HTTP connection, the actual FORM ACTION is submitting to a secure HTTPS connection:

    https://www.domain.com/store/login.html?action=process

    However, they countered by saying that if you manually EDIT the secure login URL (by changing the HTTPS into HTTP), it will still load the login page. In other words, they're saying that this (http://www.domain.com/store/login.html?action=process) should redirect back to this (https://www.domain.com/store/login.html?action=process). Likewise this (http://www.domain.com/store/login.html) should redirect to this (https://www.domain.com/store/login.html).

    Any idea how to do that?

    I did have the following added to the root directory of my HTACCESS file but it's not doing anything:

    RewriteRule ^store\/login\.html$ "https\:\/\/www\.domain\.com\/store\/login\.html" [R=301,L]

    Even after adding that and restarting Apache, I can still manually go to http://www.domain.com/store/login.html (without the HTTPS redirect).

    Any ideas on what else I should be looking at?
    - Jeff

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to redirect LOGIN.HTML to a secure connection?

    There is no such address as login.html in stock Zen Cart; you must have a URL rewriter active which creates the pagenames with .html extensions (which are unnecessary, misleading and pointless). Try turning off the rewriting and see if you still have the issue.

  3. #3
    Join Date
    Aug 2004
    Posts
    817
    Plugin Contributions
    0

    Default Re: How to redirect LOGIN.HTML to a secure connection?

    Yes, we do have a SEFU rewriter just to help with our page rankings. I fear that if I remove this, it would hurt our standings in the search engines.

    Do you happen to know if the HTACCESS file puts priority on the first rewrite statements and ignores the last ones? For example, the rewrite code basically says to change all pages to .html. AFTER that line, I have the code to rewrite the login.html to be redirected to the secure HTTPS address.

    Do you think if I put the login part FIRST in the HTACCESS code, that will work as opposed to being last in the file?

    (I understand that this isn't ZenCart making this not work......I am just hoping that someone can help possibly with a solution to making this work on my ZenCart site.)
    - Jeff

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How to redirect LOGIN.HTML to a secure connection?

    It's a false positive.

    And it's really frustrating when their automated scanning robots are too stupid to understand that the form is still secure.

    Regardless of whether someone changes the URL in the address bar to http instead of https, the <form action="https://...."...> will STILL transmit all the submitted form data over encrypted SSL. It's just basic web operation.

    And NO actual customer is going to make any such change in their address bar during normal use. It's only scanning bots that would do that. So in real world experience it's even less serious than the already meaningless false-positive they're giving you.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2004
    Posts
    817
    Plugin Contributions
    0

    Default Re: How to redirect LOGIN.HTML to a secure connection?

    Yeah, I have tried to explain that to them. I told them that even though the FORM is displayed on the HTTP site, the DATA is transmitted security. I have been going back and forth with them on the issue. Right now, I am awaiting their response again to see if they can clarify it as a false positive, since I have previously been certified using this exact same code, and I've never been called out on it in the past.
    - Jeff

 

 

Similar Threads

  1. Loosing secure connection when adding items to cart
    By motherwestwind in forum Installing on a Linux/Unix Server
    Replies: 40
    Last Post: 28 Sep 2014, 08:39 PM
  2. IE6 security alert - redirected to non secure connection
    By zubenubi in forum Basic Configuration
    Replies: 9
    Last Post: 31 Aug 2010, 05:47 PM
  3. Login is not secure. How do I secure Login?
    By makenoiz in forum Basic Configuration
    Replies: 18
    Last Post: 12 Nov 2008, 10:00 AM
  4. Problem redirect after login on site with html index page
    By brianosc in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 May 2008, 03:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg