Bearer Token (2024)

Bearer Token (1)

Bearer Token (2)

February 06, 2024

Overview

A Bearer Token is a long-lived token that belongs to an authorized entity following authentication. But, there are some important details to note inorder to utilize this temporary derivative of the data it provides access to effectively and securely. Theterm temporary derivative is accurate because:

  1. Temporary: Bearer Tokens should have an expiry (i.e. Time-To-Live -- TTL).
  2. Derivative: Bearer Tokens are a secondary product of the actual product (the data they provide access to).

The Bearer Token's authentication occurred at the beginning of the token's life, and its TTLcould be hours, if not days. This results in a security vulnerability for the rest of the duration of that token, because it couldfall into the wrong hands.

Table of Contents

History

Security

TLS Vulnerability

XSS (Cross-Site Scripting)

Implicit Authentication

Conclusion

History

Bearer Token (3)

The core principle of Bearer Tokens emerged in the financial system. The concept has been used in various forms for physical securities and documents long before digital applications.

Subsequently, this principle began to be adapted for use in digital systems, but there wasn't necessarily a prefixed Bearer to a header as thereis today. In the early 2000s, one adopter of a token mechanism to signify identity and access rights was SOAP. Their tokens functionwith a similar principle as Bearer Tokens today.

Today, Bearer Tokens are predominantly associated with OAuth.

Security

Bearer Token (4)

Being that Bearer Tokens are a mechanism to provide secure access to resources, it's important to understand their vulnerabilities, and howto use them securely.

TLS Vulnerability

Bearer Token (5)

TLS 1.2 is used predominantly today all over the internet. However, it has a relatively serious vulnerability (given the scale of its use).First, learn more about how the TLS handshake works.

The vulnerability in TLS 1.2 was addressed in 1.3, but most of the internet still uses 1.2. The issue exists in the long-livedsymmetric private key that is exchanged during the key exchange phase of the TLS protocol. In TLS 1.3, this symmetric private keyis not the same from one session to the next, so if it's compromised in one session, subsequent or previous sessions cannot be decrypted.

XSS (Cross-Site Scripting)

Bearer Token (6)

Bearer Tokens should not be stored in plain browser caches. They should be stored securely in browser cache (so that JavaScript scripts cannot access them) and only transmitted through HTTPS.This can be accomplished by setting the Set-Cookie response header from the server with HttpOnly, Secure flags.

Implicit Authentication

Bearer Token (7)

In a near-perfectly secure world (perfectly secure does not exist), each request for resources would carry with it a uniqueauthentication challenge to validate identity. Without this, it's possible for an adversary to gain access to a long-livedauthorization token like a Bearer Token (using it as they wish), thanks to its insecure implicit authentication.

As it currently stands, Bearer Tokens are implicitly used for authentication (because of their reusability). This means that the owner's identity is assumedto be validated through the presence of a valid Bearer Token upon subsequent usages.

Conclusion

Bearer Token (8)

Bearer Tokens have a long history, and it may be coming to an end. With the recent advent of Zero-Knowledge Proofthat enables sophisticated authentication where a user's credentials never leave their machine (instead sending a one-time proof that is not replayable), thestatic nature of Bearer Tokens as they exist today appears more and more dated in the world of security. However, making the move toZero-Knowledge Proof for something as common as Bearer Tokens would require a significant increase in computational capacity.

Updated: 2024-02-08

Bearer Token (2024)
Top Articles
Nutritional Therapy | EmotionMatters
Company - Anywhere Real Estate Inc.
What Did Bimbo Airhead Reply When Asked
SZA: Weinen und töten und alles dazwischen
Golden Abyss - Chapter 5 - Lunar_Angel
Pixel Speedrun Unblocked 76
Washu Parking
Enrique Espinosa Melendez Obituary
Mychart Mercy Lutherville
Blairsville Online Yard Sale
Select The Best Reagents For The Reaction Below.
Visustella Battle Core
Stream UFC Videos on Watch ESPN - ESPN
Seafood Bucket Cajun Style Seafood Restaurant in South Salt Lake - Restaurant menu and reviews
Bc Hyundai Tupelo Ms
Ivegore Machete Mutolation
Classroom 6x: A Game Changer In The Educational Landscape
Clarksburg Wv Craigslist Personals
Amc Flight Schedule
Beebe Portal Athena
Swgoh Turn Meter Reduction Teams
CDL Rostermania 2023-2024 | News, Rumors & Every Confirmed Roster
Arre St Wv Srj
X-Chromosom: Aufbau und Funktion
Rural King Credit Card Minimum Credit Score
Christina Steele And Nathaniel Hadley Novel
Isaidup
Military life insurance and survivor benefits | USAGov
Aliciabibs
Target Minute Clinic Hours
Defending The Broken Isles
Riverstock Apartments Photos
Calvin Coolidge: Life in Brief | Miller Center
Pnc Bank Routing Number Cincinnati
One Credit Songs On Touchtunes 2022
Diana Lolalytics
Vip Lounge Odu
Tugboat Information
Labyrinth enchantment | PoE Wiki
Convenient Care Palmer Ma
Indio Mall Eye Doctor
Best Restaurants Minocqua
“To be able to” and “to be allowed to” – Ersatzformen von “can” | sofatutor.com
Trivago Anaheim California
Best Haircut Shop Near Me
2294141287
Random Warzone 2 Loadout Generator
Laurel Hubbard’s Olympic dream dies under the world’s gaze
Stone Eater Bike Park
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 6138

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.