{"id":13832,"date":"2020-12-29T07:30:00","date_gmt":"2020-12-29T12:30:00","guid":{"rendered":"https:\/\/www.thesslstore.com\/blog\/?p=13832"},"modified":"2020-12-28T15:47:01","modified_gmt":"2020-12-28T20:47:01","slug":"how-to-prevent-security-misconfiguration","status":"publish","type":"post","link":"https:\/\/www.thesslstore.com\/blog\/how-to-prevent-security-misconfiguration\/","title":{"rendered":"How to Prevent Security Misconfiguration"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">This OWASP Top 10 item is one of the most common vulnerabilities, but it\u2019s also one of the easiest to fix<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When the average person thinks of a hacker, a certain image usually comes to mind. A shadowy figure in a dark room, surrounded by monitors, with pages and pages of code flowing by. Hoodies, sunglasses, and bottles of Mountain Dew may also be present. They&#8217;re working a sort of dark magic on super-complex systems, using their expertise to penetrate even the strongest of security measures.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now sure, there may be some hackers that operate like this (especially the Mountain Dew part, need to get that caffeine somehow), using high-level skills and the most advanced methods to achieve their goals. Quite frankly though, it&#8217;s often much easier for them. As we saw when <a href=\"https:\/\/www.thesslstore.com\/blog\/keep-your-site-safe-with-the-owasp-top-10-list\/\">we examined the OWASP Top 10 List of the most common vulnerabilities<\/a>, there is a wide range of exploits available to attackers, some easier to take advantage of than others.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today we&#8217;re going to look at a type of vulnerability that is one of the easiest to exploit, requiring only a relatively basic knowledge of computer systems. It&#8217;s one that relies more on the lack of training and mistakes of end users, rather than the sheer skill of the attacker. But at the same time, it\u2019s a vulnerability that could lead to the theft or destruction of your data, resulting in costly recovery efforts. We&#8217;re talking about security misconfiguration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, what is security misconfiguration? How does this vulnerability end up impacting businesses like yours? And what can you do to prevent security misconfiguration attacks?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s hash it out.<span id=\"newline\"><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is Security Misconfiguration?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Security misconfiguration is a broad term that can cover a lot of ground and be applied in many different areas. What\u2019s common though, is that security misconfiguration occurs when best practices aren\u2019t followed during the setup of security measures for an asset. The reason that security misconfiguration is viewed as a vulnerability is because attackers will try and exploit these mistakes to gain unauthorized access to the user\u2019s system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Security misconfiguration can apply to either devices or software. Operating systems, servers, and applications can all be affected. So can network devices, email servers, and end-user devices like laptops or cell phones. Basically, anything that has configurable security features can fall prey to this vulnerability.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When talking specifically about software, security misconfiguration can occur anywhere in the application stack. We\u2019re talking databases, frameworks, servers, network services, virtual machines, containers, etc. And all it takes is one bad configuration in a single area. If an attacker finds something to exploit, then not only can it lead to them gaining access to a portion of the system data or functionality, but it can also snowball into a complete system compromise that brings with it devastating business impacts for your company.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Security Misconfiguration: An Easy Mistake to Make (and Even Easier to Exploit)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s now harder than ever to stay ahead of the curve thanks to the increased complexity of applications, OSes, and frameworks that are used by both data centers and cloud systems. All these various components are rapidly evolving independently of one another, which creates a challenge when deploying the appropriate processes and actions for effective protection. More and more enterprises are moving towards cloud services, and COVID-19 has accelerated this process even more as remote work has seen a full-speed ramp up. It\u2019s easy to neglect security basics when plunged into such a dynamic, high-stress environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we touched on, security misconfiguration vulnerabilities are viewed as \u201clow hanging fruit\u201d since they\u2019re relatively easy to detect and exploit. It\u2019s often the path of least resistance for an attacker that is targeting servers, applications, and cloud configurations for the purpose of causing catastrophic harm and creating costly data breaches. It\u2019s a huge problem that is repeatedly being taken advantage of by hackers at an alarming rate, with a <a href=\"https:\/\/outpost24.com\/blog\/Top-vulnerability-trends-and-how-to-fix-them\">recent Output24 study<\/a> finding that misconfiguration is responsible for a grand total of 82% of security vulnerabilities.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Security professionals now have less time than ever to understand systems that are only increasing in complexity. Areas will be missed, and human errors will happen. By being aware of the most common mistakes however, you can shut the door on a large percentage of security misconfiguration attack vectors in a fairly easy and straightforward way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Most Common Mistakes That Lead to Security Misconfiguration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Unnecessary features are not removed or disabled<\/strong>. This can be things like:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Unnecessary ports being left open,<\/li><li>Unneeded services permitted to run,<\/li><li>Leftover pages still available to access, and<\/li><li>Unused accounts with certain privileges not being deleted.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">By not removing superfluous components, features, and code samples, you\u2019re leaving the application open to&nbsp;attacks. Say, for example, the application server includes demo programs that don\u2019t get deleted from the production server. If these demo programs have security vulnerabilities, then it\u2019s possible for hackers to use them to compromise the entire server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Default accounts and passwords are still being used<\/strong>. This is one of the simplest, yet most common items on the list of security configuration mistakes. All sorts of devices and programs come with a set of default credentials that allow the owner to initially access them out of the box. They\u2019re present in network devices, web applications, and pretty much anything that requires authentication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This isn\u2019t inherently a problem, except for the fact that they often don\u2019t get changed after the initial installation. By not having a policy requiring the changing of default credentials, you\u2019re leaving yourself exposed to an attack. It\u2019s easy for hackers to use lists of common default usernames and passwords to brute-force your system and gain unauthorized access.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Error messages reveal too much information<\/strong>. Default server configurations can lead to overly informative error messages, containing information like detailed stack traces, being returned to users. This can result in sensitive information being disclosed and can give attackers helpful information like which component versions are being used so they can search for corresponding flaws to exploit. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Old software versions or missed updates. <\/strong>Out-of-date software leaves your system exposed to known vulnerabilities that may already have patches (but of course, you can\u2019t stay fully protected unless you regularly perform updates).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Upgraded systems aren\u2019t properly configured<\/strong>. Upgraded software can bring with it new security features, but said features aren\u2019t going to be terribly useful if they aren\u2019t enabled or configured correctly. You\u2019ll want to review every update to see what exactly is being changed\/introduced\/removed and adjust your configuration accordingly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Cloud systems aren\u2019t configured correctly. <\/strong>Cloud solution providers take a huge chunk of responsibility and workload off the laps of their clients. You can have your own cloud-based data center up and running in minutes, something that would\u2019ve taken orders of magnitude longer previously. However, you\u2019re still responsible for the configuration of your cloud resources.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AWS uses a \u201cshared responsibility model,\u201d for example. AWS takes responsibility for protecting all the infrastructure that actually runs the AWS cloud services. The customer, on the other hand, must properly mange their cloud OS, associated software, and the AWS firewall.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Debugging is left enabled. <\/strong>Most companies are setup in a way where they have two distinct environments, one for development and one for production. Debugging is enabled in the development environment because the greater amount of information that\u2019s returned is helpful in refining the software and cleaning up errors. It shouldn\u2019t be left on in the production environment though because hackers can theoretically trigger lengthy error messages that expose sensitive code-related information that can ultimately be used against you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Unprotected files &amp; directories are out in the open<\/strong>. Attackers can gain unauthorized access to sensitive files if developers neglect setting permissions on certain directories, dashboards, or admin consoles. <a href=\"https:\/\/campus.barracuda.com\/product\/webapplicationfirewall\/doc\/42049348\/forced-browsing-attack\/\">Forced browsing attacks<\/a> can be used to try and locate susceptible locations that can be accessed in the hope of finding restricted files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s even easier for attackers if directory listing is enabled on the server. Then they can simply ask for a list of all the files and directories that are present. For example, a hacker could search for complied Java classes and grab them off the server. Then they can decompile the code in the hopes of finding an exploitable flaw in the application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Consequences of Security Misconfiguration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that we know some of the specific ways in which security misconfiguration attacks can occur, let\u2019s take a quick look at some recent real-life examples and ramifications:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MongoDB Databases<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Earlier this year, a <a href=\"https:\/\/www.zdnet.com\/article\/hacker-ransoms-23k-mongodb-databases-and-threatens-to-contact-gdpr-authorities\/\">hacker targeted nearly 47% of all MongoDB databases<\/a> on the internet. The common theme across them all? None were protected with a password. As a result, the attacker used an automated script to locate the vulnerable ones, delete their content, and leave a ransom note demanding payment to a Bitcoin address within 48 hours. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What\u2019s even more disheartening is that similar attacks have been happening since 2017, but users haven\u2019t been learning their lessons in significant numbers. The number of exposed MongoDB servers in 2017 was 60,000, and the number has only slightly decreased to 48,000 over the last three years.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Travel Firm\u2019s Customer Data<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In September of 2019, UK travel <a href=\"https:\/\/www.itproportal.com\/news\/teletext-holidays-data-breach-exposed-customer-calls\/\">firm Teletext Holidays fell victim to a data breach<\/a> that lead to the personal information of thousands of customers being exposed. Roughly 500,000 files that contained details like email addresses, home addresses, phone numbers, and birthdays were sitting out in the open on an unprotected AWS server, freely available for anyone that thought to take a look.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A Cache of Biometric Data<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, <a href=\"https:\/\/www.itproportal.com\/news\/over-a-million-users-biometric-data-leaked-in-breach\/\">a massive database of biometric data on over a million people was left unprotected and unencrypted<\/a> by the company Biostar 2. It was found in August of 2019 by a pair of Israeli security researchers that were scanning corporate systems to find flaws that could lead to data breaches. The Biostar 2 database contained 27.8 million records, plus other data such as admin panels, dashboards, fingerprint and facial recognition data, access logs, and staff details. The database wasn\u2019t read-only, either. If you had access, you could literally change a person\u2019s fingerprint.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">AWS Misconfiguration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">One of the biggest causes of identify theft in the United States has become the exposure of AWS buckets. A major incident of this type occurred in late 2019, when pen tests found the <a href=\"https:\/\/securityboulevard.com\/2019\/12\/unsecured-aws-bucket-exposes-personal-data-of-750000-u-s-residents\/\">personal data of 750,000 citizens sitting in an unsecured AWS bucket<\/a>. It was a stash of birth certificate applications, protected without even a password, that exposed \u201cthe applicant\u2019s name, date-of-birth, current home address, email address, phone number and historical personal information, including past addresses, names of family members and the reason for the application \u2014 such as applying for a passport or researching family history.\u201d<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Cost of Human Error<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As we\u2019ve seen, human error is a primary cause of security misconfiguration, such as in the case of a Spring contractor <a href=\"https:\/\/threatpost.com\/att-verizon-subscribers-exposed-mobile-bills\/150867\/\">misconfiguring a cloud storage bucket and exposing hundreds of thousands of mobile phone bills<\/a>. Mistakes happen, and oftentimes its merely a case of people forgetting or simply not knowing that certain defaults need to be changed or that basic services must be manually turned on. Now let\u2019s take a look at some of the basic best practices that should always be used as a straight point for preventing security misconfiguration.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\" style=\"font-size:23px\"><span class=\"color\" style=\"color:#F07725\"><strong>Protect Your Site With CodeGuard Backup<\/strong><\/span><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/content\/images\/cg-vertical-logo.svg\" alt=\"CodeGuard Logo\" width=\"200\" height=\"111\" style=\"display: block;margin-left: auto;margin-right: auto;\">\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"wp-block-paragraph\">It&#8217;s like an undo button to reverse damage done by a mistake, cyber attack, a bad update, or other issues.<\/p>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background has-central-palette-7-background-color no-border-radius\" href=\"https:\/\/www.thesslstore.com\/codeguard\/backup.aspx\">Explore CodeGuard Backup<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n<\/div><\/div>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Prevent Security Misconfiguration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Limit access to administrator interfaces. <\/strong>Part of your deployment policy should be disabling admin portals to all but certain permitted parties. The implementation of the policy should also be reviewed via regular audits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Disable debugging. <\/strong>This is especially critical when deploying to a production environment. You\u2019ll want to pay particular attention to the configuration for debugging features, and all of them should be disabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Disable the use of default accounts and passwords. <\/strong>The first step after installing any device of piece of software should be to create a new set of credentials. The default should never be used. You\u2019ll want to make this a mandatory part of your company policy. You\u2019ll want to employ other password-related best practices as well, like having maximum lengths for passwords and limiting the number of permitted login failures.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Disable Directory Listing<\/strong>. Make sure that this feature is not enabled on any of your deployed applications and check that proper permissions have been set for files and folders. You\u2019ll also want to deny requests for particular file types. Restrict access to files that users shouldn\u2019t need to access, like .bak files for instance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Regularly patch and update software. <\/strong>This will help protect your applications and systems from malware and new vulnerabilities you may not be aware of yet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Remove unused features. <\/strong>All they end up doing is increasing your application\u2019s susceptibility to misconfiguration vulnerabilities. If no one should be using them, then there\u2019s no point in keeping them around.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use automation to your advantage. <\/strong>Regularly run scans and perform audits to find things like missing patches, misconfigurations, the use of default accounts, unnecessary services, etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Avoid Security Misconfiguration with Knowledge and Processes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Security Misconfiguration issues can result from both human error and a general lack of knowledge. By being aware of the most common mistakes and the easiest prevention measures, you\u2019ll have a great foundation for keeping your systems safe from the vast majority of misconfiguration-focused attacks. It\u2019s important to remember that these best practices must be a part of an organizational focus on security, with proper processes in place that keep your staff trained and your systems up to date.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This OWASP Top 10 item is one of the most common vulnerabilities, but it\u2019s also one of the easiest to fix When the average person thinks of a hacker, a&#8230;<\/p>\n","protected":false},"author":37,"featured_media":13833,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","tve_updated_post":"","tve_custom_css":"","tve_user_custom_css":"","tve_globals":{},"tcb2_ready":0,"tcb_editor_enabled":0,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[25],"tags":[],"class_list":["post-13832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ssl-certificates","post-without-tags"],"views":24026,"jetpack_featured_media_url":"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2020\/12\/bigstock-Studio-Photo-Of-A-Lock-With-A-389209666.jpg","_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/13832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/comments?post=13832"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/13832\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media\/13833"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media?parent=13832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/categories?post=13832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/tags?post=13832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}