-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionalityAn improvement of existing functionalitytype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Description
- Gitea version (or commit ref): 1.6.2
- Git version: 2.20.1
- Operating system: CentOS 7
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL) https://observatory.mozilla.org/analyze/try.gitea.io, see "Anti-CSRF tokens set without using the SameSite flag"
- No
- Not relevant
- Log gist: N/A
Description
The SameSite setting should be enabled on the session and CSRF cookies as an added prevention against CSRF. Mozilla does a good job of explaining its purpose, but the gist is that it prevents cookies being sent in a request initiated from a foreign origin.
Screenshots
N/A
alexanderadam, dpertin and m-ueberall
Metadata
Metadata
Assignees
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionalityAn improvement of existing functionalitytype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.