Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7733

Add CSRF protection with JWT

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: None
    • Labels:
      None

      Description

      During generation of JWT :
      – Generate a random value
      – Add this value in the JWT session (in property xsrfToken)
      – Generate another cookie named XSRF-TOKEN that contain the random value

      During the validation of JWT :
      – Check that the value of the property xsrfToken is equal to the value of the HTTP header X-XSRF-TOKEN

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: