You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure counter is meant to be path specific. It's meant to check if the current path being accessed is in an infinite loop. It may be broken, I don't recall triggering it personally in some time.
I've been thinking for a while that the failure counter and possibly error items being passed back to NGINX should go away and be replaced by something like a struct that gets passed to from VP to nginx and then passed back in. This struct could grow (or shrink!) as VP changes over time and it wouldn't require any changes to the nginx config. This would allow for a timestamp to be carried and perhaps the struct could be signed using the same secret that VP uses for it's JWT.
bnfinet
changed the title
How does the failure counter even work?
fix failure counter and improve the way VP and nginx pass error information back and forth during a login session
Aug 6, 2022
bnfinet
changed the title
fix failure counter and improve the way VP and nginx pass error information back and forth during a login session
fix failure counter and improve the way VP and Nginx pass error information back and forth during a login session
Aug 6, 2022
I'm not really an expert myself, but my understanding is that if you use the same key for your signin state and for the jwt, and there is some way an attacker can control the signin state, this could enable the attacker to plug arbitrary data into the signed JWT.
I've been reading login.go and I think the failure counter logic might not be working properly since #350.
The session is locked to the path
/auth/{state}/
, so the failure counter set in line 84 will surely not be available to the login handler, right?The text was updated successfully, but these errors were encountered: