Connect with us

Politics

Keeping OAuth Safe: 5 Security Best Practices

Published

on

Keeping OAuth Safe: 5 Security Best Practices


OAuth (Open Authorization) is the standard protocol of numerous digital platforms for delegated authorization. It’s the technology that enables users, for example, to click on a “Continue with Facebook” button on a website — thereby using Facebook to verify their identity.

Despite its wide adoption and convenience for both developers and users, OAuth comes with security risks. From insecure redirect URIs to insufficiently protected endpoints, understanding these risks is crucial for ensuring the secure use of OAuth in your applications.

This article introduces OAuth, explores its associated security risks, and suggests five essential best practices for keeping OAuth safe. Our focus is to improve your understanding of this framework and equip you with actionable steps for implementing OAuth securely.

 

    Image Credit: Provided by the Author; freepik.com; Thank you!

What Is OAuth?

OAuth, or Open Authorization, is an open-standard authorization framework that allows applications to secure designated access. In simpler terms, OAuth enables third-party applications to access user data without the need for sharing passwords. This mechanism simplifies life for users by reducing the need to remember multiple passwords and enhances security.

The OAuth framework is built on a series of tokens. These tokens are essentially permissions granted by the user to an application to access specific information. An essential aspect of OAuth is that it allows this access without the user needing to share their password with the third-party application. The beauty of this is that if a user wants to revoke access, they can simply invalidate the token without changing their password.

OAuth is built on a series of flows known as grant types. These flows dictate how an application gets an access token, which in turn, determines the type of data the application can access. The different flows are designed to cater to other use cases. For instance, the Authorization Code flow is designed for server-side applications, while the Implicit flow is used for client-side applications.

See this detailed blog post to gain a more in-depth understanding of OAuth.

Understanding OAuth Security Risks

As an access control technology, OAuth naturally presents cybersecurity risks. As a developer or application owner, understanding these risks can help ensure your data remains secure. Security risks associated with OAuth can be categorized into four main types: Insecure redirect URIs, access token theft, lack of encryption, and insufficiently protected endpoints.

Insecure Redirect URIs

Redirect URIs are a fundamental part of the OAuth process. Users are redirected to a specific URI with an authorization code or access token when they authorize an application. However, if this redirect URI is insecure, attackers could potentially intercept this code or token.

Insecure redirect URIs can occur if an application allows all redirects or if the redirect URI is not validated correctly. An attacker could exploit this by tricking users into authorizing an application that redirects to a malicious site. From there, the attacker could steal the authorization code or access token. To minimize this risk, validating redirect URIs and only allowing specific, trusted URIs is essential.

Access Token Theft

Access tokens are the keys to the kingdom in OAuth. They provide applications with access to user data. However, if these tokens are stolen, an attacker could potentially access this data.

Token theft can occur in several ways, such as through phishing attacks, man-in-the-middle attacks, or cross-site scripting attacks. To mitigate this risk, it’s essential to secure access tokens. This can be achieved by using secure channels for communication, implementing token binding, or using refresh tokens.

Lack of Encryption

Encryption is critical to any security protocol, and OAuth is no exception. If data transmitted during the OAuth process is not encrypted, attackers could intercept and read it.

The lack of encryption could lead to several security issues, such as eavesdropping attacks or token theft. To protect against these threats, all communication during the OAuth process should be encrypted using protocols like TLS.

Insufficiently Protected Endpoints

Endpoints are the server-side components of the OAuth process. They are responsible for issuing tokens and handling authorization requests. However, if these endpoints are not adequately protected, attackers could exploit them.

Insufficiently protected endpoints could lead to several security issues, such as token theft or unauthorized access to user data. To mitigate these risks, it’s essential to implement robust security measures at these endpoints. This could include validating requests, implementing rate limiting, or using secure communication protocols.

5 Security Best Practices for OAuth

As with any framework or protocol, how secure OAuth is ultimately depends on its implementation. One should adhere to several best practices to ensure the secure operation of OAuth.

Always use SSL/TLS

The first best practice for OAuth is always using Transport Layer Security (TLS) or its predecessor, Secure Sockets Layer (SSL). These cryptographic protocols provide secure communication over a network—a critical aspect when dealing with sensitive information like authentication and authorization details.

SSL/TLS ensures that data transmitted between systems remains confidential and free from tampering. Encrypting the data prevents unauthorized individuals from gaining access to sensitive information. Using SSL/TLS also ensures integrity, ensuring that the data sent is what is received, without any modifications.

However, simply using SSL/TLS is not enough. It’s also essential to use it correctly. Ensure you use strong cipher suites and avoid using deprecated versions of these protocols. It’s also essential to ensure that your SSL certificates are valid, not expired, and from a trusted certificate authority.

Validate and Filter Redirects

The second best practice is validating and filtering redirects. OAuth relies heavily on redirects, where the user is redirected to the authenticating party, then redirected back to the application once authentication is successful. However, attackers can exploit this process to redirect users to malicious sites.

To prevent this, it’s crucial to validate all redirects. This means ensuring that the redirected URLs belong to the application and are not pointing to a third-party site. It’s also essential to filter out any redirects that don’t meet these criteria.

In addition, applications should strictly specify valid redirect URIs and check every redirect against this list. Any redirect that does not match should be rejected. This will drastically reduce the chances of redirection attacks.

Limit the Scope of Access Tokens

The third best practice for OAuth security is to limit the scope of access tokens. An access token is a credential that grants access to specific resources for a specific period. However, if an access token is compromised, it could lead to unauthorized access to these resources.

To mitigate this risk, limiting the scope of access tokens is advisable. This means granting access tokens only the necessary permissions needed to perform a specific task, nothing more. It also involves limiting the duration that these tokens are valid. Short-lived access tokens are less likely to be compromised, and even if they are, the window of opportunity for misuse is minimal.

Regularly Rotate and Revoke Tokens

The fourth best practice in OAuth security is to rotate and revoke tokens regularly. Regularly rotating access tokens reduces the likelihood of successful attacks because even if an attacker manages to steal a token, it would be valid for only a short period.

Token rotation should also be accompanied by token revocation. This involves invalidating tokens that are no longer needed. For instance, when a user logs out, their token should be revoked to prevent any potential misuse.

Implement a Strict Client Registration Process

The fifth and final best practice for OAuth security is implementing a strict client registration process. This process involves registering third-party applications that will be using your OAuth service.

A strict client registration process ensures that only authorized and trusted applications can access your resources. It also provides a layer of accountability, as each registered application can be tracked and monitored.

This process should involve thoroughly vetting the application, including its purpose, the type of data it will access, and how it will use it. Only applications that meet your criteria should be registered and given access to your OAuth service.

Conclusion

As we wrap up this exploration into the world of OAuth and its associated security best practices, it’s important to remember that the safety of your applications and the data they handle is paramount. The steps outlined here are not exhaustive — but they form essential pillars for building a secure OAuth implementation.

Implementing OAuth involves a delicate balance between facilitating user convenience and ensuring data security. We’ve delved into the inherent risks, discussed common vulnerabilities, and suggested preventive measures to safeguard against potential attacks. Always using TLS/SSL, validating and filtering redirects, limiting the scope of access tokens, regularly rotating and revoking tokens, and implementing a strict client registration process are some of the core strategies you can implement to fortify your OAuth environment.

However, remember that cybersecurity is a moving target, with new threats always emerging. Therefore, staying abreast of the latest developments and adjusting your strategies accordingly is vital. Staying informed and proactive in adapting best practices can make the difference between a secure and vulnerable application.

Featured Image Credit: Photo by Ron Lach; Pexels; Thank you!

Gilad Maayan

Technology writer

I’m a technology writer with 20 years of experience working with leading technology brands including SAP, Imperva, CheckPoint, and NetApp. I am a three-time winner of the International Technical Communication Award. Today I lead Agile SEO, the leading marketing and content agency in the technology industry.

Politics

Fintech Kennek raises $12.5M seed round to digitize lending

Published

on

Google eyed for $2 billion Anthropic deal after major Amazon play


London-based fintech startup Kennek has raised $12.5 million in seed funding to expand its lending operating system.

According to an Oct. 10 tech.eu report, the round was led by HV Capital and included participation from Dutch Founders Fund, AlbionVC, FFVC, Plug & Play Ventures, and Syndicate One. Kennek offers software-as-a-service tools to help non-bank lenders streamline their operations using open banking, open finance, and payments.

The platform aims to automate time-consuming manual tasks and consolidate fragmented data to simplify lending. Xavier De Pauw, founder of Kennek said:

“Until kennek, lenders had to devote countless hours to menial operational tasks and deal with jumbled and hard-coded data – which makes every other part of lending a headache. As former lenders ourselves, we lived and breathed these frustrations, and built kennek to make them a thing of the past.”

The company said the latest funding round was oversubscribed and closed quickly despite the challenging fundraising environment. The new capital will be used to expand Kennek’s engineering team and strengthen its market position in the UK while exploring expansion into other European markets. Barbod Namini, Partner at lead investor HV Capital, commented on the investment:

“Kennek has developed an ambitious and genuinely unique proposition which we think can be the foundation of the entire alternative lending space. […] It is a complicated market and a solution that brings together all information and stakeholders onto a single platform is highly compelling for both lenders & the ecosystem as a whole.”

The fintech lending space has grown rapidly in recent years, but many lenders still rely on legacy systems and manual processes that limit efficiency and scalability. Kennek aims to leverage open banking and data integration to provide lenders with a more streamlined, automated lending experience.

The seed funding will allow the London-based startup to continue developing its platform and expanding its team to meet demand from non-bank lenders looking to digitize operations. Kennek’s focus on the UK and Europe also comes amid rising adoption of open banking and open finance in the regions.

Featured Image Credit: Photo from Kennek.io; Thank you!

Radek Zielinski

Radek Zielinski is an experienced technology and financial journalist with a passion for cybersecurity and futurology.

Continue Reading

Politics

Fortune 500’s race for generative AI breakthroughs

Published

on

Deanna Ritchie


As excitement around generative AI grows, Fortune 500 companies, including Goldman Sachs, are carefully examining the possible applications of this technology. A recent survey of U.S. executives indicated that 60% believe generative AI will substantially impact their businesses in the long term. However, they anticipate a one to two-year timeframe before implementing their initial solutions. This optimism stems from the potential of generative AI to revolutionize various aspects of businesses, from enhancing customer experiences to optimizing internal processes. In the short term, companies will likely focus on pilot projects and experimentation, gradually integrating generative AI into their operations as they witness its positive influence on efficiency and profitability.

Goldman Sachs’ Cautious Approach to Implementing Generative AI

In a recent interview, Goldman Sachs CIO Marco Argenti revealed that the firm has not yet implemented any generative AI use cases. Instead, the company focuses on experimentation and setting high standards before adopting the technology. Argenti recognized the desire for outcomes in areas like developer and operational efficiency but emphasized ensuring precision before putting experimental AI use cases into production.

According to Argenti, striking the right balance between driving innovation and maintaining accuracy is crucial for successfully integrating generative AI within the firm. Goldman Sachs intends to continue exploring this emerging technology’s potential benefits and applications while diligently assessing risks to ensure it meets the company’s stringent quality standards.

One possible application for Goldman Sachs is in software development, where the company has observed a 20-40% productivity increase during its trials. The goal is for 1,000 developers to utilize generative AI tools by year’s end. However, Argenti emphasized that a well-defined expectation of return on investment is necessary before fully integrating generative AI into production.

To achieve this, the company plans to implement a systematic and strategic approach to adopting generative AI, ensuring that it complements and enhances the skills of its developers. Additionally, Goldman Sachs intends to evaluate the long-term impact of generative AI on their software development processes and the overall quality of the applications being developed.

Goldman Sachs’ approach to AI implementation goes beyond merely executing models. The firm has created a platform encompassing technical, legal, and compliance assessments to filter out improper content and keep track of all interactions. This comprehensive system ensures seamless integration of artificial intelligence in operations while adhering to regulatory standards and maintaining client confidentiality. Moreover, the platform continuously improves and adapts its algorithms, allowing Goldman Sachs to stay at the forefront of technology and offer its clients the most efficient and secure services.

Featured Image Credit: Photo by Google DeepMind; Pexels; Thank you!

Deanna Ritchie

Managing Editor at ReadWrite

Deanna is the Managing Editor at ReadWrite. Previously she worked as the Editor in Chief for Startup Grind and has over 20+ years of experience in content management and content development.

Continue Reading

Politics

UK seizes web3 opportunity simplifying crypto regulations

Published

on

Deanna Ritchie


As Web3 companies increasingly consider leaving the United States due to regulatory ambiguity, the United Kingdom must simplify its cryptocurrency regulations to attract these businesses. The conservative think tank Policy Exchange recently released a report detailing ten suggestions for improving Web3 regulation in the country. Among the recommendations are reducing liability for token holders in decentralized autonomous organizations (DAOs) and encouraging the Financial Conduct Authority (FCA) to adopt alternative Know Your Customer (KYC) methodologies, such as digital identities and blockchain analytics tools. These suggestions aim to position the UK as a hub for Web3 innovation and attract blockchain-based businesses looking for a more conducive regulatory environment.

Streamlining Cryptocurrency Regulations for Innovation

To make it easier for emerging Web3 companies to navigate existing legal frameworks and contribute to the UK’s digital economy growth, the government must streamline cryptocurrency regulations and adopt forward-looking approaches. By making the regulatory landscape clear and straightforward, the UK can create an environment that fosters innovation, growth, and competitiveness in the global fintech industry.

The Policy Exchange report also recommends not weakening self-hosted wallets or treating proof-of-stake (PoS) services as financial services. This approach aims to protect the fundamental principles of decentralization and user autonomy while strongly emphasizing security and regulatory compliance. By doing so, the UK can nurture an environment that encourages innovation and the continued growth of blockchain technology.

Despite recent strict measures by UK authorities, such as His Majesty’s Treasury and the FCA, toward the digital assets sector, the proposed changes in the Policy Exchange report strive to make the UK a more attractive location for Web3 enterprises. By adopting these suggestions, the UK can demonstrate its commitment to fostering innovation in the rapidly evolving blockchain and cryptocurrency industries while ensuring a robust and transparent regulatory environment.

The ongoing uncertainty surrounding cryptocurrency regulations in various countries has prompted Web3 companies to explore alternative jurisdictions with more precise legal frameworks. As the United States grapples with regulatory ambiguity, the United Kingdom can position itself as a hub for Web3 innovation by simplifying and streamlining its cryptocurrency regulations.

Featured Image Credit: Photo by Jonathan Borba; Pexels; Thank you!

Deanna Ritchie

Managing Editor at ReadWrite

Deanna is the Managing Editor at ReadWrite. Previously she worked as the Editor in Chief for Startup Grind and has over 20+ years of experience in content management and content development.

Continue Reading

Copyright © 2021 Seminole Press.