Login page keeps a stale CSRF token/cookie after the session ends

Aperta
#4,156 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à
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
javascript

Direzione di ricerca

The payload names no files, so start by finding the login page template and where the X-Uaa-Csrf cookie is set and expired, then compare with the existing <meta http-equiv="refresh"> behaviour. Check how the page handles visibility changes and back/forward cache restores. Done means the page reloads only when the form is untouched and older than 5 minutes, and a stale token no longer produces invalid_login_request. The proposal is not settled, so confirm the approach with maintainers first.

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

Descrizione

If the login page stays open (background tab, sleep, logout in another tab or session), the X-Uaa-Csrf cookie can be expired or deleted while the form still holds the old token. Submitting valid credentials then fails with /login?error=invalid_login_request ("the request does not meet our security standards"). The existing only covers the cookie's max age.

Proposal: reload the login page when it becomes visible or is restored from the back/forward cache, but only if the form is untouched and the page is older than 5 minutes.

Lingua principale
Java
Stelle
1.6k
Fork
847
Merge medio
2g 1h
PR unite (30g)
48

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 cloudfoundry/uaa

Tutte le issue di cloudfoundry/uaa

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.