[Bug]: Topology functions do not require a trusted context for unimpersonated tokens
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- authorization
Direzione di ricerca
Reproduce by calling getTokenVBL(getSelected) from a player client on a token the player does not own, as the report describes. Compare the topology lookup functions with the other token lookups, which already require a trusted context, and find where the check is missing. Done when an untrusted player is refused for unimpersonated tokens they do not own, while the GM and owners still succeed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the Bug
The token topology functions (e.g., getTokenVBL()) allow getting the topology from another token by provide the token's ID. Unlike most other look ups, this does not require a trusted context, meaning any player get the information regardless of whether they own the token.
To Reproduce
- Start a new campaign, and start a server as a GM.
- Join the server with a player client.
- Drop a token on the map. Make sure it is not owned by the player, and add some VBL to it.
- On the GM client (host):
- Select the token.
- Get the token's VBL:
[r: getTokenVBL(getSelected)] - This should rightfully succeed since GMs can do anything.
- On the player client:
- Select the token.
- Get the token's VBL:
[r: getTokenVBL(getSelected)] - This will succeed despite the player not having necessary permissions..
Expected Behaviour
It should not be possible to get another unimpersonated token's topology from an untrusted context.
Screenshots
No response
MapTool Info
MapTool 1.18.8
Desktop
Linux 22.3
Additional Context
I believe this behaviour goes back a long ways, it's not new in 1.18.
- Lingua principale
- Java
- Stelle
- 927
- Fork
- 286
- Merge medio
- 3g 17h
- PR unite (30g)
- 94
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RPTools/maptool
-
[Bug]: An initiative list with no current entry logs an error on every changeForse già presa @dwizard0 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
[Maintenance]: Migrate gradle dependency submission to modern alternativeForse già presa @VelpulaGangavardhan l’ha presa 18 giorni fa. Apertacode-maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
RPTools/maptool#6156 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
code-maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RPTools/maptool
Issue simili
-
Cleanup: restore the interrupt flag in AiFailureAnalyzerForse già presa @Rishankgupta08 l’ha presa oggi. Apertagood first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
seleniumboot/selenium-boot#258 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
dense-analysis/ale#5181 ·
-
bug subsystem:agent-harness triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ShaftHQ/SHAFT_ENGINE#8043 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
johanhaleby/occurrent#1505 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno