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
Credit Cards That Earn 2% Cash Back on All Purchases - NerdWallet
Can Your Business Offer Free Shipping On Small Business Saturday? | Bankrate
Golden Abyss - Chapter 5 - Lunar_Angel
Unit 30 Quiz: Idioms And Pronunciation
Arkansas Gazette Sudoku
Unitedhealthcare Hwp
Zitobox 5000 Free Coins 2023
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
Miles City Montana Craigslist
Mail Healthcare Uiowa
Roblox Character Added
Best Suv In 2010
Letter F Logos - 178+ Best Letter F Logo Ideas. Free Letter F Logo Maker. | 99designs
The Cure Average Setlist
Plan Z - Nazi Shipbuilding Plans
Nevermore: What Doesn't Kill
Long Island Jobs Craigslist
Titanic Soap2Day
8005607994
Plaza Bonita Sycuan Bus Schedule
Teekay Vop
Southland Goldendoodles
Surplus property Definition: 397 Samples | Law Insider
Disputes over ESPN, Disney and DirecTV go to the heart of TV's existential problems
Cpt 90677 Reimbursem*nt 2023
Urbfsdreamgirl
Accuradio Unblocked
O'reilly's In Mathis Texas
Enduring Word John 15
Jailfunds Send Message
Albertville Memorial Funeral Home Obituaries
Tu Housing Portal
Planned re-opening of Interchange welcomed - but questions still remain
Robert A McDougal: XPP Tutorial
Craig Woolard Net Worth
R/Orangetheory
Advance Auto Parts Stock Price | AAP Stock Quote, News, and History | Markets Insider
Mumu Player Pokemon Go
The Best Carry-On Suitcases 2024, Tested and Reviewed by Travel Editors | SmarterTravel
Police Academy Butler Tech
Natashas Bedroom - Slave Commands
Dynavax Technologies Corp (DVAX)
2700 Yen To Usd
Qlima© Petroleumofen Elektronischer Laserofen SRE 9046 TC mit 4,7 KW CO2 Wächter • EUR 425,95
Lovely Nails Prices (2024) – Salon Rates
Setx Sports
Quaally.shop
Cch Staffnet
Random Animal Hybrid Generator Wheel
Devotion Showtimes Near Showplace Icon At Valley Fair
Terrell Buckley Net Worth
Selly Medaline
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.