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
Proof of Address: What Is It and How to Get One? | Incode
Dinraal
Kevin Cox Picks
South Park Season 26 Kisscartoon
Tyrunt
Turbocharged Cars
Alaska: Lockruf der Wildnis
Top tips for getting around Buenos Aires
Huge Boobs Images
Craigslist Apartments In Philly
Non Sequitur
Becu Turbotax Discount Code
Dr Manish Patel Mooresville Nc
Bank Of America Financial Center Irvington Photos
Erica Banks Net Worth | Boyfriend
Robin D Bullock Family Photos
Uncovering The Mystery Behind Crazyjamjam Fanfix Leaked
Bòlèt Florida Midi 30
Bolsa Feels Bad For Sancho's Loss.
Timeline of the September 11 Attacks
Tokyo Spa Memphis Reviews
R Baldurs Gate 3
Encore Atlanta Cheer Competition
Santa Barbara Craigs List
Greyson Alexander Thorn
Missing 2023 Showtimes Near Grand Theatres - Bismarck
Vlocity Clm
Teenbeautyfitness
Boondock Eddie's Menu
Forager How-to Get Archaeology Items - Dino Egg, Anchor, Fossil, Frozen Relic, Frozen Squid, Kapala, Lava Eel, and More!
6143 N Fresno St
Unity Webgl Player Drift Hunters
Jennifer Reimold Ex Husband Scott Porter
Heavenly Delusion Gif
Jefferson Parish Dump Wall Blvd
Tirage Rapid Georgia
Karen Wilson Facebook
Sand Castle Parents Guide
Leland Nc Craigslist
Jaefeetz
6576771660
How Big Is 776 000 Acres On A Map
Walmart 24 Hrs Pharmacy
How to Install JDownloader 2 on Your Synology NAS
The Complete Uber Eats Delivery Driver Guide:
Aloha Kitchen Florence Menu
Devotion Showtimes Near Showplace Icon At Valley Fair
The 13 best home gym equipment and machines of 2023
Germany’s intensely private and immensely wealthy Reimann family
Campaign Blacksmith Bench
Bumgarner Funeral Home Troy Nc Obituaries
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.