Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

API token principal not bound to the minting caller

Aperta
#7,598 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Read the core token record write paths, especially the create chain and the owner's commit point for routed updates and data changes. Compare those paths with ApiTokenVerdict and Plugins ApiTokenService.Validate, which read the token principal. Done means new tokens can name only their writer (with the stated service token exception), existing principals cannot change, and a regression fails on current main.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug sev:B

Summary

An API token's principal (ApiToken.UserId, which every token verdict authenticates as) is not bound to the caller that writes the token record. A write path that lets a person set or change that field lets the token authenticate as a principal the writer is not.

Scope

  • Core: the write seams for token records (create chain, and the owner's commit point for routed updates and data changes).
  • Both token verdicts read the principal from the record: core ApiTokenVerdict and the Plugins ApiTokenService.Validate. A write-side binding covers both.

Fix

A token's principal is bound to its writer: a new token may name only the writer (service tokens only from inside their own service token namespace), and an existing token's principal never changes. The binding is enforced at the create chain and at the commit point, and it recognises the credential by its content rather than by the node type. Fix PR to follow, with a regression that fails on current main.

Not established

Whether this was ever used is not known. Tokens already in stores were not audited for a principal that differs from their partition.

Lingua principale
C#
Stelle
12
Fork
5
Merge medio
5h 37m
PR unite (30g)
959

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Systemorph/MeshWeaver

Tutte le issue di Systemorph/MeshWeaver

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.