Privacy Violation : Autocomplete
Summary
Most recent browsers have features that will save password field content entered by users and then automatically complete password entry the next time the field are encountered. This feature is enabled by default and could leak password since it is stored on the hard drive of the user. The risk of this issue is greatly increased if users are accessing the application from a shared environment. Recommendations include setting autocomplete to "off" on all your password fields.
Please Note: Recent versions of most browsers, as noted below, now ignore the autocomplete="off" attribute for password fields in html forms. Users are allowed to decide the password policy at their own discretion using the password manager. Although setting is ineffective on these versions of browsers, it would continue to protect website users of earlier versions of these and other browsers that support this attribute.
Browsers NOT Supporting autocomplete="off":
1. Internet Explorer version 11 or above
2. Firefox version 30 or above
3. Chrome version 34 or above
4. For other browsers, please refer to vendor specific documentation
Explanation
When autocomplete is enabled, hackers can directly steal your password from local storage.
Execution
To verify if a password filed is vulnerable, first make sure to enable the autocomplete in your browser's settings, and then input the other fileds of the form to see whether the password is
automatically filled. If yes, then it's vulnerable, otherwise, not. You may need to do it twice in case it is the first time you type in the credential in your browser. Please Note: That some modern browsers no longer support this attribute as summarized above. Verification should be done using a browser that supports this attribute.
Recommendation
From the web application perspective, the autocomplete can be turned at the form level or individual entry level by defining the attribute AUTOCOMPLETE="off".
Comments
Post a Comment