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
{{ message }}
Repository navigation
Commit 271b4f4
Browse filesBrowse the repository at this point in the historyBrowse files
security: Tie the OAuth callback to the session that started it
The login did not send a state parameter since the first version of the flow,
and df83038 made it destroy the session without renewing it: a callback
could be replayed from another browser and sign the user in as the account of
somebody else (login CSRF).
The scope asked for went far beyond what the application does when 51c6b68
added read:org and repo for the org membership call, which no longer exists: no
read:org and no user:email consumer is left, the issue and comment routes only
need public_repo.
Send a random state, compare it with hash_equals() and forget it whatever the
answer, renew the session before the developer is written in it, and only
redirect to a page of this application after the login.
Signed-off-by: William Desportes <williamdes@wdes.fr>
Co-Authored-By: DeepSeek <noreply@deepseek.com>
0 commit comments