fechar
fechar
Sua Rede do Amanhã
Sua Rede do Amanhã
Planeje seu caminho rumo a uma rede mais rápida, segura e resiliente projetada para os aplicativos e usuários aos quais você oferece suporte.
          Experimente a Netskope
          Get Hands-on With the Netskope Platform
          Here's your chance to experience the Netskope One single-cloud platform first-hand. Sign up for self-paced, hands-on labs, join us for monthly live product demos, take a free test drive of Netskope Private Access, or join us for a live, instructor-led workshops.
            Líder em SSE. Agora é líder em SASE de fornecedor único.
            Líder em SSE. Agora é líder em SASE de fornecedor único.
            A Netskope estreia como líder no Quadrante Mágico™ do Gartner® para Single-Vendor SASE
              Protegendo a IA generativa para leigos
              Protegendo a IA generativa para leigos
              Learn how your organization can balance the innovative potential of generative AI with robust data security practices.
                Modern data loss prevention (DLP) for Dummies eBook
                Prevenção Contra Perda de Dados (DLP) Moderna para Leigos
                Get tips and tricks for transitioning to a cloud-delivered DLP.
                  Livro SD-WAN moderno para SASE Dummies
                  Modern SD-WAN for SASE Dummies
                  Pare de brincar com sua arquitetura de rede
                    Compreendendo onde estão os riscos
                    Advanced Analytics transforms the way security operations teams apply data-driven insights to implement better policies. With Advanced Analytics, you can identify trends, zero in on areas of concern and use the data to take action.
                        Os 6 casos de uso mais atraentes para substituição completa de VPN herdada
                        Os 6 casos de uso mais atraentes para substituição completa de VPN herdada
                        Netskope One Private Access is the only solution that allows you to retire your VPN for good.
                          A Colgate-Palmolive protege sua “propriedade intelectual "” com proteção de dados inteligente e adaptável
                          A Colgate-Palmolive protege sua “propriedade intelectual "” com proteção de dados inteligente e adaptável
                            Netskope GovCloud
                            Netskope obtém alta autorização do FedRAMP
                            Escolha o Netskope GovCloud para acelerar a transformação de sua agência.
                              Let's Do Great Things Together
                              A estratégia de comercialização da Netskope, focada em Parcerias, permite que nossos Parceiros maximizem seu crescimento e lucratividade enquanto transformam a segurança corporativa.
                                Netskope solutions
                                Netskope Cloud Exchange
                                Netskope Cloud Exchange (CE) provides customers with powerful integration tools to leverage investments across their security posture.
                                  Suporte Técnico Netskope
                                  Suporte Técnico Netskope
                                  Nossos engenheiros de suporte qualificados estão localizados em todo o mundo e têm diversas experiências em segurança de nuvem, rede, virtualização, fornecimento de conteúdo e desenvolvimento de software, garantindo assistência técnica de qualidade e em tempo hábil.
                                    Vídeo da Netskope
                                    Treinamento Netskope
                                    Os treinamentos da Netskope vão ajudar você a ser um especialista em segurança na nuvem. Conte conosco para ajudá-lo a proteger a sua jornada de transformação digital e aproveitar ao máximo as suas aplicações na nuvem, na web e privadas.

                                      Leaky Links: Accidental Exposure in Google Link Sharing

                                      May 01 2020

                                      Update May 6, 2020: Since the publication of this blog, Google has updated its UI to make the sharing options more clear and be less permissive by default, but the opportunity for exposure is still there and our recommendations still hold. We have updated the “Recommended Settings” section of this post with the new findings.

                                      Netskope Threat Labs recently posted the second entry in our leaky cloud app series about Google Groups. In this edition, we will cover common Google link sharing misconfigurations that can lead to the accidental internal and public exposure of sensitive data, and provide recommendations to prevent such data leaks.

                                      Google link sharing

                                      Google provides its users online office apps like documents (via Google Docs), spreadsheets (via Google Sheets), presentations (via Google Slides), and forms (via Google Forms). All of the files created and edited through these apps are saved to Google Drive, a cloud storage service used to store, synchronize, collaborate, and share files. 

                                      The files stored in Google Drive can be shared by the owner with other users in real time by using a shareable link with the following permissions:

                                      • Public on the web
                                        • Anyone in the public Internet can discover and access the shared file.
                                      • Anyone with the link
                                        • Anyone with the link can access the shared file.
                                      • Specific people
                                        • Only the specific Google accounts can access the shared file.
                                      • Anyone at Organization can find and access (Business accounts)
                                        • Everyone in the same organization can discover the file using the search function and access the file.
                                      • Anyone at Organization who has the link can access (Business accounts)
                                        • Everyone in the same organization who has the link can access the file.

                                      These shareable link and editing permissions are set by the owner and enable the collaborators to view, comment, or edit the document. 

                                      Google link sharing – Misconfigurations

                                      Misconfigurations in link sharing settings can lead to accidental exposure of sensitive and internal data internally or to the public Internet. We will be detailing some of the most common exposure problems starting with the most public types of accidental exposure and finishing with accidental exposures that occur within an organization.  

                                      Publish to the web and Public on the web – Link sharing

                                      Figure 1 shows the worst kind of link sharing exposure: Publish to the web and Public on the web – link sharing

                                      Figure showing Publish to the web & Public on the web exposure
                                      Figure 1: Publish to the web & Public on the web exposure

                                      The “Publish to the web” and “Link sharing – Public on the web” options make content visible to anyone and indexed by major search engines. This means that not only is the data publicly accessible, it is also easily discoverable by outsiders using keywords in Google search results. We discovered multiple examples of sensitive documents exposed publicly on the web, including one such confidential document of a university that showed up in the Google search results, shown in Figure 2.

                                      Figure showing example of link sharing settings that can lead to exposure
                                      Figure 2: Link sharing setting leading to exposure.

                                      Get shareable link

                                      The next most commonly seen link sharing exposure is “Get shareable link.” This option is most commonly used by the data owners to generate a link that can be shared with their collaborators. The generated links have the default sharing permissions as shown in Figure 3.

                                      Figure showing how to enable "Get a shareable link" action
                                      Figure 3: Get shareable link exposure

                                      Anyone with the link can view → Public exposure

                                      As mentioned in the above image, shared links with “Anyone with the link can view” permissions can be accessed by anyone who has the link, without any need to sign in. Though this won’t make the data indexable by search engines, it can likely pose exposure concerns in the following ways

                                      • Anyone, inside or outside of your domain, you didn’t intend to share the document with can access the file if they get their hands on the link
                                      • The user can have access to the shared links even after leaving the organization

                                      Anyone in the organization can find and access→ Internal exposure

                                      The “Anyone in the organization can find and access” sharing option can make the data findable and accessible by anyone in the organization as shown in Figure 4.

                                      Figure depicting the "Anyone in the organization can find and access" option
                                      Figure 4: Anyone in the organization can find and access

                                      This sharing feature can lead to internal exposure because, any user within the organization can gain access to confidential files by using the keywords in the search feature of Google Drive as shown in Figure 5. 

                                      Figure depicting the search function in Google Drive
                                      Figure 5: Search in Google Drive option

                                      An example of one such confidential document that showed up by using “salary” as a keyword in Google Drive search is shown in Figure 6.

                                      Figure depicting the internal exposure of a confidential document within Google Drive
                                      Figure 6: Google Drive internal exposure – confidential document

                                      Google link sharing – Recommended settings

                                      When you use link sharing, you relinquish control over who can access your files — anyone who gets their hands on a link can access a file, whether you intended them to or not. We recommend you audit the sharing permission and limit link sharing with specific people as shown in Figure 7.

                                      Figure depicting how to share links with specific people through Google Drive
                                      Figure 7: Link sharing to specific people

                                      This can give the user a clear visibility on who has access to the shared data. Additionally, users can also hover the mouse to the share option (in Google Docs, Google Sheets, and Google slides) to view the sharing controls. An example of this is shown in Figure 8.

                                      Figure depicting how to see share settings in Google Drive using a mouse hover
                                      Figure 8: Mouse hover – Sharing settings

                                      As mentioned in the introduction, Google updated their UI to make options more clear and be less permissive by default. The new default shareable link is “Restricted,” meaning it allows only the added users to access the data as shown in Figure 9.

                                      Figure showing default shareable link restriction
                                      Figure 9: Default sharable link restriction

                                      Users have to explicitly click on the “change” option to select “anyone with the link” or “anyone in the organization” options, as shown in Figure 10. Additionally, the “Anyone in the organization can find and access” sharing option can only be enabled by explicitly checking the link settings options.

                                      Figure showing updated Google link sharing restriction option
                                      Figure 10: Updated Google link sharing restriction option

                                      Even with the less permissive defaults and new interface, the opportunity for exposure exists and our recommendations still hold.

                                      Conclusion

                                      This third edition of our leaky cloud apps series provided a detailed synopsis of how confidential information gets leaked through misconfigured Google link sharing. The data created/stored in Google Drive is private by default. Misconfigured sharing controls are in place, which can lead to public or internal exposure. The data can be copied, reused, and also benefit adversaries in gaining access to additional data and infrastructure. We recommend auditing link sharing options and restricting access to specific users to avoid accidental exposure. For more information about sharing permissions, we recommend reading the Google article describing how to audit your own settings.

                                      author image
                                      Ashwin Vamshi
                                      Ashwin Vamshi is a Security Researcher with innate interest in targeted attacks and malwares using cloud services.
                                      Ashwin Vamshi is a Security Researcher with innate interest in targeted attacks and malwares using cloud services.

                                      Mantenha-se informado!

                                      Assine para receber as últimas novidades do Blog da Netskope