Clarify the CSRF token usage? #10509

Closed
opened 2025-11-02 09:09:49 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @wxiaoguang on GitHub (Mar 25, 2023).

That's a longstanding question in my mind.

Some POST requests don't use CSRF token like:

e37ef4d374/web_src/js/features/user-auth-webauthn.js (L55)

While others use, like:

e37ef4d374/web_src/js/features/user-auth-webauthn.js (L109)

This could indicate potential flaws or bugs.

Originally created by @wxiaoguang on GitHub (Mar 25, 2023). That's a longstanding question in my mind. Some POST requests don't use CSRF token like: https://github.com/go-gitea/gitea/blob/e37ef4d374e531b3af1e5f9551b6f3140060b8ab/web_src/js/features/user-auth-webauthn.js#L55 While others use, like: https://github.com/go-gitea/gitea/blob/e37ef4d374e531b3af1e5f9551b6f3140060b8ab/web_src/js/features/user-auth-webauthn.js#L109 This could indicate potential flaws or bugs.
GiteaMirror added the type/bug label 2025-11-02 09:09:49 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10509