•  
      request #17967 Deploy a useful content security policy
    Infos
    #17967
    Thomas Gerbet (tgerbet)
    2025-10-22 16:21
    2020-11-06 11:06
    19498
    Details
    Deploy a useful content security policy
    As of today, Tuleap sets a Content Security Policy [0] that has a very limited usefulness because it is very lax and in "allow all" mode by default. The CSP is an additional layer that could allow us to detect and mitigate XSS and other data injection/theft attacks.


    The plan is as follows:
    1. Move the current policy to a deny all mode by default but keeping it lax as it is today
    2. Set a proper and strict policy but in a report only mode
    3. Move this policy out of the report only mode


    The steps 2 and 3 are likely to be quite challenging due to some of the elements Tuleap is using (e.g. CKEditor4) or even its own code. It's also likely that to properly apply those changes it's going to require some large refactoring in the way the HTTP requests are handled.



    [0] https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
    Other
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Under implementation
    Empty
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2020-12-07 15:46
    gerrit #20979 (No element on the user registration confirmation page should be blocked by the Content-Security-Policy) integrated in Tuleap 12.2.99.179
    User avatar

    gerrit #20981 (Users of Chrome/Chromium based browsers cannot authorize an OAuth2 app due to the Content-Security-Policy) integrated in Tuleap 12.2.99.172