Browser security

From HandWiki
Short description: Application of internet security to web browsers

Browser security is the application of Internet security to web browsers in order to protect networked data and computer systems from breaches of privacy or malware. Security exploits of browsers often use JavaScript, sometimes with cross-site scripting (XSS)Cite error: Closing </ref> missing for <ref> tag

  • Operating system has a malware running as a background process, which is reading/modifying the browser memory space in privileged mode
  • Main browser executable can be hacked
  • Browser components may be hacked
  • Browser plugins can be hacked
  • Browser network communications could be intercepted outside the machine[1]

The browser may not be aware of any of the breaches above and may show user a safe connection is made.

Whenever a browser communicates with a website, the website, as part of that communication, collects some information about the browser (in order to process the formatting of the page to be delivered, if nothing else).[2] If malicious code has been inserted into the website's content, or in a worst-case scenario, if that website has been specifically designed to host malicious code, then vulnerabilities specific to a particular browser can allow this malicious code to run processes within the browser application in unintended ways (and remember, one of the bits of information that a website collects from a browser communication is the browser's identity- allowing specific vulnerabilities to be exploited).[3] Once an attacker is able to run processes on the visitor's machine, then exploiting known security vulnerabilities can allow the attacker to gain privileged access (if the browser isn't already running with privileged access) to the "infected" system in order to perform an even greater variety of malicious processes and activities on the machine or even the victim's whole network.[4]

Breaches of web browser security are usually for the purpose of bypassing protections to display pop-up advertising[5] collecting personally identifiable information (PII) for either Internet marketing or identity theft, website tracking or web analytics about a user against their will using tools such as web bugs, Clickjacking, Likejacking (where Facebook's like button is targeted),[6][7][8][9] HTTP cookies, zombie cookies or Flash cookies (Local Shared Objects or LSOs);[10] installing adware, viruses, spyware such as Trojan horses (to gain access to users' personal computers via cracking) or other malware including online banking theft using man-in-the-browser attacks.

In depth study of vulnerabilities in Chromium web-browser indicates that, Improper Input Validation (CWE-20) and Improper Access Control (CWE-284) are the most occurring root causes for security vulnerabilities.[11] Furthermore, among vulnerabilities examined at the time of this study, 106 vulnerabilities occurred in Chromium because of reusing or importing vulnerable versions of third party libraries.

Vulnerabilities in the web browser software itself can be minimized by keeping browser software updated,[12] but will not be sufficient if the underlying operating system is compromised, for example, by a rootkit.[13] Some subcomponents of browsers such as scripting, add-ons, and cookies[14][15][16] are particularly vulnerable ("the confused deputy problem") and also need to be addressed.

Following the principle of defence in depth, a fully patched and correctly configured browser may not be sufficient to ensure that browser-related security issues cannot occur. For example, a rootkit can capture keystrokes while someone logs into a banking website, or carry out a man-in-the-middle attack by modifying network traffic to and from a web browser. DNS hijacking or DNS spoofing may be used to return false positives for mistyped website names, or to subvert search results for popular search engines. Malware such as RSPlug simply modifies a system's configuration to point at rogue DNS servers.

Browsers can use more secure methods of network communication to help prevent some of these attacks:

Perimeter defenses, typically through firewalls and the use of filtering proxy servers that block malicious websites and perform antivirus scans of any file downloads, are commonly implemented as a best practice in large organizations to block malicious network traffic before it reaches a browser.

The topic of browser security has grown to the point of spawning the creation of entire organizations, such as The Browser Exploitation Framework Project,[17] creating platforms to collect tools to breach browser security, ostensibly in order to test browsers and network systems for vulnerabilities.

Plugins and extensions

Although not part of the browser per se, browser plugins and extensions extend the attack surface, exposing vulnerabilities in Adobe Flash Player, Adobe (Acrobat) Reader, Java plugin, and ActiveX that are commonly exploited. Researchers[18] have extensively studied the security architecture of various web-browsers in particular those relying on plug-and-play designs. This study has identified 16 common vulnerability types, and 19 potential mitigations. Malware may also be implemented as a browser extension, such as a browser helper object in the case of Internet Explorer.[19] In various other exploits websites which were designed to look authentic and included rogue 'update Adobe Flash' popups designed as visual cues to download malware payloads in their place.[20] Some browsers like Google Chrome and Mozilla Firefox can block—or warn users of—insecure plugins.

Adobe Flash

An August 2009 study by the Social Science Research Network found that 50% of websites using Flash were also employing Flash cookies, yet privacy policies rarely disclosed them, and user controls for privacy preferences were lacking.[21] Most browsers' cache and history delete functions do not affect Flash Player's writing Local Shared Objects to its own cache, and the user community is much less aware of the existence and function of Flash cookies than HTTP cookies.[22] Thus, users having deleted HTTP cookies and purged browser history files and caches may believe that they have purged all tracking data from their computers while in fact Flash browsing history remains. As well as manual removal, the BetterPrivacy add-on for Firefox can remove Flash cookies.[10] Adblock Plus can be used to filter out specific threats[5] and Flashblock can be used to give an option before allowing content on otherwise trusted sites.[23]

Charlie Miller recommended "not to install Flash"[24] at the computer security conference CanSecWest. Several other security experts also recommend to either not install Adobe Flash Player or to block it.[25]

Password security model

The contents of a web page are arbitrary and controlled by the entity owning the domain named displayed in the address bar. If HTTPS is used, then encryption is used to secure against attackers with access to the network from changing the page contents en route. When presented with a password field on a web page, a user is supposed to look at the address bar to determine whether the domain name in the address bar is the correct place to send the password.[26] For example, for Google's single sign-on system (used on e.g. youtube.com), the user should always check that the address bar says "https://accounts.google.com" before inputting their password.

An un-compromised browser guarantees that the address bar is correct. This guarantee is one reason why browsers will generally display a warning when entering fullscreen mode, on top of where the address bar would normally be, so that a fullscreen website cannot make a fake browser user interface with a fake address bar.[27]

LiveCD

LiveCDs, which run an operating system from a non-writable source, typically come with Web browsers as part of their default image. If the original LiveCD image is free of malware, all of the software used, including the Web browser, will load free of malware every time the LiveCD image is booted.

Browser hardening

Browsing the Internet as a least-privilege user account (i.e. without administrator privileges) limits the ability of a security exploit in a web browser from compromising the whole operating system.[28]

Internet Explorer 4 and later allows the blocklisting[29][30][31] and allowlisting[32][33] of ActiveX controls, add-ons and browser extensions in various ways.

Internet Explorer 7 added "protected mode", a technology that hardens the browser through the application of a security sandboxing feature of Windows Vista called Mandatory Integrity Control.[34] Google Chrome provides a sandbox to limit web page access to the operating system.[35]

Suspected malware sites reported to Google,[36] and confirmed by Google, are flagged as hosting malware in certain browsers.[37]

There are third-party extensions and plugins available to harden even the latest browsers,[38] and some for older browsers and operating systems. Whitelist-based software such as NoScript can block JavaScript and Adobe Flash which is used for most attacks on privacy, allowing users to choose only sites they know are safe - AdBlock Plus also uses whitelist ad filtering rules subscriptions, though both the software itself and the filtering list maintainers have come under controversy for by-default allowing some sites to pass the pre-set filters.[39] The US-CERT recommends to block Flash using NoScript.[40]

Fuzzing

Modern web browsers undergo extensive fuzzing to uncover vulnerabilities. The Chromium code of Google Chrome is continuously fuzzed by the Chrome Security Team with 15,000 cores.[41] For Microsoft Edge and Internet Explorer, Microsoft performed fuzzed testing with 670 machine-years during product development, generating more than 400 billion DOM manipulations from 1 billion HTML files.[42][41]

See also

References

  1. Goodin, Dan. "MySQL.com breach leaves visitors exposed to malware". https://www.theregister.co.uk/2011/09/26/mysql_hacked/. 
  2. Clinton Wong. "HTTP Transactions". O'Reilly. http://oreilly.com/catalog/httppr/chapter/http_pkt.html. 
  3. "9 Ways to Know Your PC is Infected with Malware". http://www.ebernieinc.com/9-ways-to-know-your-pc-is-infected-with-malware/. 
  4. "Symantec Security Response Whitepapers". http://www.symantec.com/security_response/whitepapers.jsp?inid=us_sr_flyout_publications_security. 
  5. 5.0 5.1 Palant, Wladimir. "Adblock Plus :: Add-ons for Firefox". Mozilla Add-ons. Mozilla Foundation. https://addons.mozilla.org/firefox/addon/adblock-plus. 
  6. "Facebook privacy probed over 'like,' invitations". CBC News. 23 September 2010. http://www.cbc.ca/news/technology/story/2010/09/23/facebook-like-invitations.html. 
  7. Albanesius, Chloe (19 August 2011). "German Agencies Banned From Using Facebook, 'Like' Button". PC Magazine. https://www.pcmag.com/article2/0,2817,2391440,00.asp. 
  8. McCullagh, Declan (2 June 2010). "Facebook 'Like' button draws privacy scrutiny". CNET News. http://news.cnet.com/8301-13578_3-20006532-38.html. 
  9. Template:Cite SSRN
  10. 10.0 10.1 Cite error: Invalid <ref> tag; no text was provided for refs named mozilla-betterprivacy
  11. Santos, J. C. S.; Peruma, A.; Mirakhorli, M.; Galstery, M.; Vidal, J. V.; Sejfia, A. (April 2017). "Understanding Software Vulnerabilities Related to Architectural Security Tactics: An Empirical Investigation of Chromium, PHP and Thunderbird". 2017 IEEE International Conference on Software Architecture (ICSA). pp. 69–78. doi:10.1109/ICSA.2017.39. ISBN 978-1-5090-5729-0. https://www.researchgate.net/publication/317072830. 
  12. State of Vermont. "Web Browser Attacks". http://itsecurity.vermont.gov/threats/web_attacks. 
  13. "Windows Rootkit Overview". Symantec. https://www.symantec.com/avcenter/reference/windows.rootkit.overview.pdf. 
  14. "Cross Site Scripting Attack". http://www.acunetix.com/websitesecurity/cross-site-scripting/. 
  15. Lenny Zeltser. "Mitigating Attacks on the Web Browser and Add-Ons". http://blog.zeltser.com/post/2527547617/targeting-web-browser. 
  16. Dan Goodin (14 March 2013). "Two new attacks on SSL decrypt authentication cookies". https://arstechnica.com/security/2013/03/new-attacks-on-ssl-decrypt-authentication-cookies/. 
  17. "beefproject.com". http://beefproject.com/. 
  18. Santos, Joanna C. S.; Sejfia, Adriana; Corrello, Taylor; Gadenkanahalli, Smruthi; Mirakhorli, Mehdi (2019). "Achilles' heel of plug-and-Play software architectures: A grounded theory based approach". Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. ESEC/FSE 2019. New York, NY, US: ACM. pp. 671–682. doi:10.1145/3338906.3338969. ISBN 978-1-4503-5572-8. https://www.researchgate.net/publication/334130422. 
  19. "How to Create a Rule That Will Block or Log Browser Helper Objects in Symantec Endpoint Protection". Symantec.com. http://www.symantec.com/business/support/index?page=content&id=TECH94965. 
  20. Aggarwal, Varun (April 30, 2021). "Breaking: Fake sites of 50 Indian News portals luring gullible readers". Economic Times CIO. https://cio.economictimes.indiatimes.com/news/digital-security/breaking-fake-sites-of-50-indian-news-portals-luring-gullible-readers/82321192. 
  21. Template:Cite SSRN
  22. "Local Shared Objects -- "Flash Cookies"". Electronic Privacy Information Center. 2005-07-21. http://epic.org/privacy/cookies/flash.html. 
  23. Chee, Philip. "Flashblock :: Add-ons for Firefox". Mozilla Add-ons. Mozilla Foundation. https://addons.mozilla.org/firefox/addon/flashblock. 
  24. "Pwn2Own 2010: interview with Charlie Miller". 2010-03-01. http://www.oneitsecurity.it/01/03/2010/interview-with-charlie-miller-pwn2own/. 
  25. "Expert says Adobe Flash policy is risky". 2009-11-12. http://news.cnet.com/8301-27080_3-10396326-245.html. 
  26. John C. Mitchell. "Browser Security Model". https://crypto.stanford.edu/cs155old/cs155-spring11/lectures/08-browser-sec-model.pdf. 
  27. "Using the HTML5 Fullscreen API for Phishing Attacks » Feross.org". http://feross.org/html5-fullscreen-api-attack/. 
  28. "Using a Least-Privileged User Account". Microsoft. 29 June 2009. https://technet.microsoft.com/en-us/library/cc700846.aspx. 
  29. "How to Stop an ActiveX control from running in Internet Explorer". Microsoft. http://support.microsoft.com/kb/240797/en-us. 
  30. "Internet Explorer security zones registry entries for advanced users". Microsoft. https://support.microsoft.com/kb/182569/en-us. 
  31. "Out-of-date ActiveX control blocking". Microsoft. https://technet.microsoft.com/en-us/library/dn761713.aspx. 
  32. "Internet Explorer Add-on Management and Crash Detection". Microsoft. 8 October 2009. https://technet.microsoft.com/en-us/library/cc737458.aspx. 
  33. "How to Manage Internet Explorer Add-ons in Windows XP Service Pack 2". Microsoft. http://support.microsoft.com/kb/883256/en-us. 
  34. Matthew Conover. "Analysis of the Windows Vista Security Model". Symantec Corporation. http://www.symantec.com/avcenter/reference/Windows_Vista_Security_Model_Analysis.pdf. 
  35. "Browser Security: Lessons from Google Chrome". http://cacm.acm.org/magazines/2009/8/34494-browser-security/fulltext. 
  36. "Report malicious software (URL) to Google". https://www.google.com/safebrowsing/report_badware/. 
  37. "Google Safe Browsing". https://www.google.com/transparencyreport/safebrowsing/?hl=en. 
  38. "5 Ways to Secure Your Web Browser". ZoneAlarm. 8 May 2014. http://www.zonealarm.com/blog/2014/05/5-ways-to-secure-your-web-browser/. 
  39. "Adblock Plus Will Soon Block Fewer Ads — SiliconFilter". Siliconfilter.com. 12 December 2011. http://siliconfilter.com/adblock-plus-will-soon-block-fewer-ads-by-default-allow-non-intrusive-ads/. 
  40. "Securing Your Web Browser". http://www.us-cert.gov/reading_room/securing_browser/. 
  41. 41.0 41.1 Sesterhenn, Eric; Wever, Berend-Jan; Orrù, Michele; Vervier, Markus (19 Sep 2017). "Browser Security WhitePaper". X41D SEC GmbH. https://browser-security.x41-dsec.de/X41-Browser-Security-White-Paper.pdf. 
  42. "Security enhancements for Microsoft Edge (Microsoft Edge for IT Pros)" (in en-us). Microsoft. 15 Oct 2017. https://docs.microsoft.com/en-us/microsoft-edge/deploy/security-enhancements-microsoft-edge. 

Further reading