Azure / Azure/azure-cli

`azure.cli.core._profile.Profile` sets `"verify_signature": False` when decoding the access token

Open
#33,036 3 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Azure CLI Team question Security-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

We received a security concern:

> A critical security flaw in the `azure-cli-core` component was identified, where the JWT decoding process explicitly disables signature verification. This allows attackers to manipulate claims such as Tenant ID and Object ID in tokens, leading to identity spoofing and unauthorized access to cross-tenant data or metadata. The vulnerability resides in `src/azure-cli-core/azure/cli/core/_profile.py`. The `jwt.decode` method is invoked with the option `{"verify_signature": False}`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.