Better HN
topnewbestaskshowjobs
Log inSign up

tftyeti

1 karma · joined Mar 27, 2021 (5y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

Sure, that mitigates the risk when an attacker finds a refresh token later and it's no longer valid because of rotation. And it means that a stolen refresh token would probably be noticeable because the legitimate user wouldn't be able to use it anymore. But in many attack scenarios the attacker would get the refresh token immediately and the time until discovery would be enough for them to cause damage, right?

comment 5y ago · link · parent

Probably a silly question, but how exactly does the refresh token help here? If your app is keeping the tokens accessible from javascript, then an attacker who (through XSS for example) can steal the short-lived access token could also steal the long-lived refresh token an "trade it" for a new access token, no?