Bearer CLI: Rule - Leakage of sensitive data in JWT (2024)

  • Rule ID: ruby_lang_jwt
  • Languages: ruby
  • Source: jwt.yml

Description

Storing sensitive data in JWTs exposes it to potential security risks. JWTs are designed for transmitting data securely, not for storing confidential information. Guard against including sensitive data in a JWT payload.

  • Do not include sensitive data, such as email addresses or personal information, in JWT payloads. This practice can lead to unauthorized access to sensitive information.
    payload = { data: 'data', email: user.email } # unsafe
    token = JWT.encode payload, hmac_secret, 'HS256'
  • Do use non-sensitive, unique identifiers, like a user's database UUID, in JWT payloads. This approach minimizes the risk of sensitive data exposure.
    payload = { data: 'data', user_id: user.uuid }
    token = JWT.encode payload, hmac_secret, 'HS256'

Associated CWE

OWASP Top 10

Configuration

To skip this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --skip-rule=ruby_lang_jwt

To run only this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --only-rule=ruby_lang_jwt
Bearer CLI: Rule - Leakage of sensitive data in JWT (2024)
Top Articles
Are IBC Totes Airtight | Design & Sealing Capabilities of IBC Containers
Importing Olives | Agricultural Marketing Service
Dlnet Retiree Login
Trabestis En Beaumont
Nfr Daysheet
Mcoc Immunity Chart July 2022
Atrium Shift Select
Imbigswoo
Lantana Blocc Compton Crips
Moe Gangat Age
Identogo Brunswick Ga
Think Up Elar Level 5 Answer Key Pdf
Hair Love Salon Bradley Beach
Craigslist Apartments In Philly
Learn2Serve Tabc Answers
Dit is hoe de 130 nieuwe dubbele -deckers -treinen voor het land eruit zien
Les Rainwater Auto Sales
What is Rumba and How to Dance the Rumba Basic — Duet Dance Studio Chicago | Ballroom Dance in Chicago
Booknet.com Contract Marriage 2
Mahpeople Com Login
ELT Concourse Delta: preparing for Module Two
18889183540
Hewn New Bedford
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Parkeren Emmen | Reserveren vanaf €9,25 per dag | Q-Park
CVS Health’s MinuteClinic Introduces New Virtual Care Offering
TMO GRC Fortworth TX | T-Mobile Community
Biografie - Geertjan Lassche
John Philip Sousa Foundation
417-990-0201
Basil Martusevich
Haunted Mansion Showtimes Near Cinemark Tinseltown Usa And Imax
Miss America Voy Board
Salons Open Near Me Today
Phone number detective
Koninklijk Theater Tuschinski
Puretalkusa.com/Amac
More News, Rumors and Opinions Tuesday PM 7-9-2024 — Dinar Recaps
Beaufort SC Mugshots
Homeloanserv Account Login
Promo Code Blackout Bingo 2023
R: Getting Help with R
Stosh's Kolaches Photos
Mother Cabrini, the First American Saint of the Catholic Church
Phunextra
The Plug Las Vegas Dispensary
Tìm x , y , z :a, \(\frac{x+z+1}{x}=\frac{z+x+2}{y}=\frac{x+y-3}{z}=\)\(\frac{1}{x+y+z}\)b, 10x = 6y và \(2x^2\)\(-\) \(...
Call2Recycle Sites At The Home Depot
Rétrospective 2023 : une année culturelle de renaissances et de mutations
Edict Of Force Poe
BYU Football: Instant Observations From Blowout Win At Wyoming
Yoshidakins
Latest Posts
Article information

Author: Jonah Leffler

Last Updated:

Views: 5979

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.