XMLHttpRequest caches credentials incorrectly.

I've found what I believe to be a bug in FireFox 4 on Windows. I've not tested on any other operating systems.
I have developed a Web application that uses HTTP Basic authentication. To allow for a customizable log on screen, I'm using XMLHttpRequest to send log on credentials to the server from an HTML form.
Briefly, it works like this:
1. My JavaScript function is called "onsubmit" of a form. The function returns false to cancel the actual form submit.
2. The JavaScript function collects the user/password entered on the form and passes them on the open() method of XMLHttpRequest.
3. On successful response from the server (200 OK), the script redirects into the application, as you are now logged on and FireFox caches the credentials to the HTTP Basic realm used by the application.
4. On unsuccessful response from the server (403 Not Authorized, in my case), a message is displayed on the page to indicate invalid user/password.
This code relies on a server-side CGI script to intelligently send the 401 response and WWW-Authenticate header as needed. Briefly, it works like this:
1. Apache is configured to NOT require authentication for this script, although all other URLs in the application are configured for HTTP Basic authentication.
2. The CGI script looks at the "Authorization" header.
3. If the "Authorization" header is not present, the CGI script sends the "WWW-Authenticate" header and the "401 Authorization Required" status.
4. If the "Authorization" header is present, the CGI script decodes the user/password from it and validates them. If valid, a 200 OK is sent. If not valid, a 403 Not Authorized is sent.
This is a common technique for using both HTTP Basic authentication and a custom log on form. The technique is very similar to that described in technical detail here:
http://www.peej.co.uk/articles/http-auth-with-html-forms.html
It works beautifully to allow the JavaScript to handle the invalid user/password without FireFox popping up its own log on box.
The trouble (and where I think I've found a bug) is this:
Once FireFox 4 has sent credentials and gotten either the 200 or 403 response, it caches those credentials permanently in the FireFox session!
For example:
1. The user comes to the log on form and enters the credentials incorrectly the first time.
2. The user then corrects the credentials and submits again.
3. FireFox 4 sends the Authorization header with the bad credentials from step 1! Even though the XMLHttpRequest.open() call specifies different credentials.
I'm very sure this is a bug because:
1. In FireFox 3 this does not happen. FireFox 3 sends the actual credentials that are passed to XMLHttpRequest.open() every time.
2. FireFox 4's own log on box does not suffer from this problem. It should be no different with XMLHttpRequest.
3. No other browser suffers from this problem.
If this actually appears to be a bug, how to I go about submitting a bug report?

Try this two steps, and EWS works fine. No popup temperately. 
1.De-selecting "Enable Integrated Windows Authentication" in Internet Explorer(Tools, Internet Options, Advanced, scroll down to the "Security"section).
2.If you delete both the client certificate from the Personal certificate store and the credential from  Credential Manager, Lync 2010
will prompt the user for credentials, and re-authenticate the user using NTLM v2. After successful authentication, a new client certificate appears in the user’s Personal certificate store,and subsequent sign-ins will be authenticated using TLS-DSK.
Pasted from <http://blogs.technet.com/b/nexthop/archive/2012/11/28/lync-2010-client-authentication.aspx>
Best regards,
Lester Chen

Similar Messages

  • Cached credentials are not working on the lock screen (Windows 7)

    Hello all,
    We are having a difficult time trying to troubleshoot a problem with credential caching seemingly not working on the lock screen for our laptop users. Users are instructed to logon to the laptop while connected to the domain to cache their credentials. The
    user then leaves the network, and is able to log in to the laptop using cached credentials. The laptop locks either due to a manual lock, or due to an inactivity timer. The user tries to relog and is presented with the error “no logon servers available to
    service the request.” Users are reporting the problem from both home and public networks. We have been able to recreate the issue by logging on the laptop while in the office and setting our internal wireless network to manually connect, and then simply clicking
    start > shutdown arrow > lock. Many users have reported that they were able to get back into the laptop after a hard shut down, but would be unable to log in again if they returned to the lock screen. One user has reported that selecting other credentials
    > switch user > other user while on the lock screen and then entering in his DC credentials would allow him to get back into the laptop. I was unable to recreate this workaround on our test machine. I also tried to logon using the switch user account
    with the “.\username” method to see if that would look for cached credentials. One user has reported that he was unable to hard shut down the computer to get back in. He also reported that he tried to pull the battery and give it time before trying again.
    We have set the value for “Interactive logon: Number of previous logons to cache” to 50. The status of “Interactive Logon: Require Domain Controller to unlock workstation” is disabled. We have tried to turn the Wi-Fi switch off and then back on while on
    the lock screen. Error logs that we think are related to the problem include – Event ID:5719, NETLOGON and Event ID:4343, NlaSvc error 0x4C6 and error 0x51
    I have a slightly sinking feeling it has something to do with NLA thinking that they are connected to a domain while on the lock screen, but this is pure speculation. Thanks for reading my post and any potential solutions are greatly appreciated! 

    I'd try them over here.
    Windows IT Pro forums on TechNet
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Windows 7 802.1x wifi profile issue with cached credentials

    We have a wireless network that is setup as WPA2-Enterprise AES using 802.1x. We have a user that is constantly having his account locked out. When we trace where it's coming from, it's from our
    radius server (which is only used for this one wireless network). We have already deleted the profile and recreated it. If we uncheck the option to remember the username/password, and enter that manually at prompt, it connects fine. As soon as we check that
    option back, it fails and will keep failing and eventually lock out his acocunt. We have recreated his user profile and the wifi profile with no luck. I've done the following http://security.stackexchange.com/questions/15574/how-do-i-clear-cached-credentials-from-my-windows-profile
    but to no avail. There are no credentials listed when I go this route. Can someone shed light as to where it is hiding these credentials?

    Hi
    Maybe change settings on RADIUS server to allow more than 5 successive login attempts.
    If you look at the windows security log on the radius server can you see if it giving errors of bad username or password?
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Trying to log into a RDS server using cached credentials

    I have a Windows Server 2012 R2 with Remote Desktop Services installed and it is a member server in my domain.   As a test,  I have cut the network connection between the RDS server and the domain controller.   I can log into the
    RDS server at the console with my cached domain account,  but I can't RDP into the server with my cached domain accout.   It is telling me the specified domain either does not exist or could not be contacted.   Does RDS sessions not
    use cached credentials ?    I have set the Group Policy Option: Interactive logon: Number of previous logons to cache (in case domain controller is not available) to 30.   That didn't seem to make any difference.  Thanks for any
    help with this problem.

    Hi,
    By default Network Level Authentication (NLA) will be used for RDP connections, and this requires the domain controller to be available.  If you needed to you could disable the requirement to use NLA in the collection properties and set a custom rdp
    property so that clients would not attempt to use NLA when they connect.  The downside of this approach is clients will never use NLA when connecting and instead will see a server-side log on screen, and may get multiple prompts for credentials.
    It is preferred to use NLA where possible, which in most cases it is since modern clients support it.
    -TP

  • HELP! Slow logon with Cached Credentials off domain. Have xperf files.

    Having issues when you take a corporate laptop off domain and log in using cached credentials. Login times range from 2-4 minutes. This is with SSD. No problem logging in on network. Only way to speed up login off network is disable wireless. I ran
    xperf both on network and off network. I have xperf files that can be emailed. Anybody got an idea?

    When trying to log in with domain credential offsite, your laptop is trying to contact DC from public Internet before using cached credentials. Without network, it will try cached credentials directly. According with my knowledge, you can't force cached
    credentials, the process is Automatic.
    Therefore, the only solution is disconnecting the network cable or using a local user instead.
    And this tool in the following link can help you findout exactly what is holding up the login process. You can check the result by youself.
    http://blogs.technet.com/b/askpfeplat/archive/2012/06/09/slow-boot-slow-logon-sbsl-a-tool-called-xperf-and-links-you-need-to-read.aspx

  • No Cached Credentials - error ID 40721

    I updated Appworld on my Curve 8900 when it first became available a couple of weeks ago and immediately started getting the message about something being wrong with this session and try again.  I tried a couple of things like deleting and re installing AppWorld, and now I get the message "No Cached Credentials.  Error ID 40721" whenever I try to upgrade apps or download new ones.  I have complete access from AppWorld online with my computer browser.  I have updated my Blackberry ID and my payment options.  I am still unable to use AppWorld on my device.
    Solved!
    Go to Solution.

    Believe me...I understand financial constraints...I've been unemployed since being laid off last October...
    carpenter wrote:
    I inherited my boss's device when he upgraded. Just deactivated the BES policy and I was good to go.
    Oh I do hope you did that properly...there are very specific methods to do so, and many methods folks think work actually do not (e.g., the on-device WIPE commands do not touch the IT Policy).
    carpenter wrote:
    BTW would it be possible to downgrade my version of AW?
    Typically, you can access two versions of AW. The most current version (which you already have) and the version that was packaged with your BB OS. To fall back to that, you have to reload your OS so that you can regain that version of AW. But, nothing in between is "officially" available -- though I've seen links from time to time of folks hosting unofficial AW versions (no...I have no list).
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • No cached credentials

    Hi Everyone,
    My BB had ben eaten by my dog and I just received my new device from the service. I got a brand new one, with all my datas saved from the old one. It is great, everything works, but when I try to download anything from the app world, it says no cached credentials, error id:40721. I tried everything what I found online in forums (because many people have the exact same problem), but nothing worked. My device thinks that I have no network connection, while I am abée to use the browser. I could not even download apps through my PC. Since it says I'm not connected to the network, it does not allow me to do anything. Any ideas?
    Thanx
    Solved!
    Go to Solution.

    Hi csippesz
                            On your previous device are you using Blackberry Application like BBM,Facebook etc and do you have blackberry internet service in your account .
    First  try this :
    On Your Home Screen  Go to Options - Device - Advance System setting  - Host Routing Table - there press the Menu Key  than Click Register Now .Wait and see if any Registration message comes .after that perform a battery pull restart like this:
      While Device is Powered On remove the Battery wait for a min. then re-insert it back wait till the device take a long Reboot.
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • No cached credentials. (ID error :40721)

    Hi,
    I have some problemes on my Blackberry.
    I want to download, for example WhatsApp, I have internet with wifi but it can't be download it(by Apps Store of Blackberry on my phone Desktop), and show me this error:
    " No cached credentials. (ID error :40721) "
    I need help please.
    Thanks a lot.

    virajpatel wrote :
    even i have same problem with it.
    i can't download any thing from bb app world .
    Hi virajpatel  
                                Please Contact your Carrier and make sure that sufficent data plan is enabled on your Account,after that Go through those steps suggested in Knowledge Base and see if problem resolves.
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Authenicated with Cached Credentials

    I have 2 identical Mac Book Pro laptops (I use one as a backup). I do a full backup of the production Mac using SuperDuper and install it on the other to use as a replacement if needed. They are never on the network (Windows 2003/AD) at the same time. When logging into the network on the backup laptop a message pops up saying Authenicated with Cached Credentials. After several times of logging in you are no longer able to log in at all. Is there something I need to clear that I am missing?

    Hi beachbum 2013, and a warm welcome to the forums!
    Hmmm, might see if this is of any help...
    http://www.scribd.com/doc/6075527/Group-Policies-for-Mac-OS-X
    Next time it won't login, try logging out, then logon to your Mac, click the Other... button on the logon screen and use domain/username as your logon information.

  • Find a error in storm 9530 :- No Cached credentials.(Error id : 40721)

    Hey Friends Please Help Me for this error .!
    when i am download any apps from blackberry app world then above error stop me .
    how can i manage it . please help me......

    hello,
    please read this article from the public knowledge base.
    KB32439 Error 40721: No Cached Credentials appears when accessing BlackBerry App World
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Using cached credentials (LSASS) with portable browser to access webproxy with integrated authentication (NTLM)

    We want to create a small portable application in our network that accesses a server on the internet using an internal proxy that requires integrated windows authentication (NTLM) from a standard domain client PC(non admin) running in
    user mode after the client logged in. We wonder if such a PE is able to access cached credentials (LSASS hashes). If you read that browsers like chrome can access cached credentials with integrated
    authentication I wonder if that is really possible. In my understanding no portable 3rd party application that gets executed after the user is logged in is able to access such stored hash
    values (only maybe some hacker tools that run under system account can dump such hashes). But maybe it is possible. Very happy if someone can point me in the right direction.
    Thx
    Oliver

    Hi Oliver,
    The closest method I can relate is Kerberos Delegation, which allows an application to reuse the end-user credentials to access recourses hosted on a different server.
    More information for you:
    Kerberos Delegation
    http://blogs.msdn.com/b/autz_auth_stuff/archive/2011/05/03/kerberos-delegation.aspx
    About Kerberos constrained delegation
    https://technet.microsoft.com/en-us/library/cc995228.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Caching credentials for webauth in ISE 1.2?

    We are providing internet access through a Guest portal. The portal is provided by the ISE through webauth and the user is created through the ISE Sponsor Portal.
    When an account is created and the enduser logs in to it, I would like for the ISE to cache the credentials for that user for a period of time; at least 1 or more days before it prompts them to log back in again. Right now, if a user disconnects for a short period and then goes to reconnet, it prompts for the username/password again.
    Where (and how) in the ISE do you configure that?
    Thank you.                  

    Thanks for the quick reply Charles. I am reading through the details of it now.
    It looks like DRW basically registers the MAC of a connecting device in an identity store and then allows that device to connect. Does it still match the MAC to a guest user so that we can set time profiles against it and does it expire like the guest accounts do?
    Any ETA on the release of ISE 1.3?

  • Cached credentials

    We have a proxy server that requires authentication (using Windows AD account) before users can go onto the web. One day while running updates from the web, I authenticated with my login - but I did not select the checkbox to save it to the keychain.
    About a week later that user happened to come in on a Saturday. All of a sudden his machine is hitting our proxy server using my credentials once every minute. It must be running in the background because it never prompts him to login.
    I have reset safari, manually deleted everything in the keychain, and used Tiger Cache cleaner ("deep clean") and it still does it.
    Where else could this be hiding?

    You're welcome. Glad I could help.
    Thanks for the and Aloha from Big Island.

  • If you cache credentials in Safari how long does it last for on iOS?

    Can anyone verify how long cached login credentials last in Safari, and when they get cleared without user intervention?
    I have been reading other posts relating to a change that was made to Safari but not sure if it is related "Several people have reported problems that Safari’s cache prevents them from browsing a web site’s current version; instead Safari loads pages from previous cached files  (iPad, iPhone or iPod Touch). It has also been reported that clearing cache, cookies and history does not fix this problem."
    Any help is greatly appreciated.

    Mine just quit, it froze in the rebooting screen and does nothing else, please help. How can I restore it to factory state

  • ACS 5.1 AD Cached Credentials

    Hello,
    Does ACS 5.1 appliance cache the AD credentials.  I'm testing this box and when I disable a user account in AD,  I can still login to my device.
    I remember in 4.2 ?  I could click a radio button to NOT cache the credentials.
    Thanks
    -pat

    Never mind.....I had my Evaluating Identity Policy messed up.

Maybe you are looking for

  • Time sync visa input with acquired sound data

    Hello all! I'm pretty new to LV, but here goes: I'm trying to collect data from a balance via VISA read (RS232), and at the same time I acquire sound via the pc sound card. I'm looking for a way to syncronise the time for the two datasets (resolution

  • New day, new problem...CalDAV

    Hey guys, I used CalDAV to sync my goolge calendar with my iphone. This has worked great for the past year, first on my 3G and initially on my 4. Yesterday it stopped working. I keep getting a incorrect password error for my CalDAV account. I've rese

  • BPEL and JDEV 10.1.2

    Hi, I made a BPEL process using JDEV 10.1.2, and everything was fine. The real problem is that I'm tryng to run the BPEL process in others BPEL engines and it seems like it doesn't work. The others engines ask me about .wsdd file, but JDEV 10.1.2 doe

  • Banner to be displayed

    Hi, We have requirement where we need to display a banner in the log on screen saying that information stored is secure and stuff like that,  Also the system is shared across users between 4 company  , we need this banner only for users from 2 compan

  • 10.1 AC Remediation View Says No Data Found while Business View Shows Plenty

    We are upgrading to AC 10.1 from 10.0. We configured gateway connection and I am using Chrome browser. Not sure why user risk analysis in remediation view comes back "No Data Found" while in business view there are plenty of risks. Any ideas? -Thanks